Class WriteComputeHandlerV1
java.lang.Object
com.linkedin.venice.schema.writecompute.WriteComputeHandlerV1
- All Implemented Interfaces:
WriteComputeHandler
- Direct Known Subclasses:
WriteComputeHandlerV2
Write compute V1 handles value records that do not have replication metadata.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.avro.generic.GenericRecord
updateValueRecord
(org.apache.avro.Schema valueSchema, org.apache.avro.generic.GenericRecord currValue, org.apache.avro.generic.GenericRecord writeComputeRecord) Execute write-compute operation on a value record.
-
Constructor Details
-
WriteComputeHandlerV1
public WriteComputeHandlerV1()
-
-
Method Details
-
updateValueRecord
public org.apache.avro.generic.GenericRecord updateValueRecord(org.apache.avro.Schema valueSchema, org.apache.avro.generic.GenericRecord currValue, org.apache.avro.generic.GenericRecord writeComputeRecord) Description copied from interface:WriteComputeHandler
Execute write-compute operation on a value record.- Specified by:
updateValueRecord
in interfaceWriteComputeHandler
- Parameters:
valueSchema
- Schema of the value record.currValue
- Value record. Note that the this object may be mutated in the implementation of this method and the returned object may be reference equal to this input object. When it isOptional.empty()
, it means that there is currently no value.writeComputeRecord
- Write compute schema- Returns:
- updated value record.
-