Enum Class VeniceWriteComputeOperation

java.lang.Object
java.lang.Enum<VeniceWriteComputeOperation>
com.linkedin.venice.stats.dimensions.VeniceWriteComputeOperation
All Implemented Interfaces:
VeniceDimensionInterface, Serializable, Comparable<VeniceWriteComputeOperation>, Constable

public enum VeniceWriteComputeOperation extends Enum<VeniceWriteComputeOperation> implements VeniceDimensionInterface
Dimension values for the VeniceMetricsDimensions.VENICE_WRITE_COMPUTE_OPERATION dimension, representing the phase of a write compute (partial update) operation during ingestion.

Write compute allows clients to send partial updates (e.g., list add/remove, map put/delete) instead of full record replacements. Processing a write compute message involves two phases:

  1. Query — Looking up the existing record value from the storage engine to use as the base for applying the partial update.
  2. Update — Applying the write compute operations (e.g., collection merges) to produce the final updated record.

Used by the ingestion.write_compute.time metric to break down write compute latency by phase.

See Also:
  • Enum Constant Details

    • QUERY

      public static final VeniceWriteComputeOperation QUERY
      The lookup phase: reading the existing record value from storage to use as the base for the update
    • UPDATE

      public static final VeniceWriteComputeOperation UPDATE
      The update phase: applying write compute operations to the base record to produce the final value
  • Method Details

    • values

      public static VeniceWriteComputeOperation[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VeniceWriteComputeOperation valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDimensionName

      public VeniceMetricsDimensions getDimensionName()
      All instances of this enum share the same dimension name. Refer to VeniceDimensionInterface.getDimensionName() for more details.
      Specified by:
      getDimensionName in interface VeniceDimensionInterface