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:
- Query — Looking up the existing record value from the storage engine to use as the base for applying the partial update.
- 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionAll instances of this enum share the same dimension name.static VeniceWriteComputeOperationReturns the enum constant of this class with the specified name.static VeniceWriteComputeOperation[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.linkedin.venice.stats.dimensions.VeniceDimensionInterface
getDimensionValue
-
Enum Constant Details
-
QUERY
The lookup phase: reading the existing record value from storage to use as the base for the update -
UPDATE
The update phase: applying write compute operations to the base record to produce the final value
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getDimensionName
All instances of this enum share the same dimension name. Refer toVeniceDimensionInterface.getDimensionName()for more details.- Specified by:
getDimensionNamein interfaceVeniceDimensionInterface
-