Enum Class VenicePartialUpdateOperation

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

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

Partial update allows clients to send partial updates (e.g., list add/remove, map put/delete) instead of full record replacements. Processing a partial update 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 partial update operations (e.g., collection merges) to produce the final updated record.

Used by the ingestion.partial_update.time metric to break down partial update latency by phase.

See Also:
  • Enum Constant Details

    • QUERY

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

      public static final VenicePartialUpdateOperation UPDATE
      The update phase: applying partial update operations to the base record to produce the final value
  • Method Details

    • values

      public static VenicePartialUpdateOperation[] 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 VenicePartialUpdateOperation 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