Class MergeConflictResultWrapper
java.lang.Object
com.linkedin.davinci.kafka.consumer.MergeConflictResultWrapper
This wrapper is used to keep the context after handling Active/Active messages.
-
Constructor Summary
ConstructorsConstructorDescriptionMergeConflictResultWrapper
(MergeConflictResult mergeConflictResult, Lazy<ByteBufferValueRecord<ByteBuffer>> oldValueProvider, Lazy<ByteBuffer> oldValueByteBufferProvider, RmdWithValueSchemaId oldRmdWithValueSchemaId, ChunkedValueManifestContainer oldValueManifestContainer, ByteBuffer updatedValueBytes, ByteBuffer updatedRmdBytes, Function<Integer, RecordDeserializer<org.apache.avro.generic.GenericRecord>> deserializerProvider) -
Method Summary
Modifier and TypeMethodDescriptionLazy<org.apache.avro.generic.GenericRecord>
Return a best-effort value provider with the following behaviors: 1.
-
Constructor Details
-
MergeConflictResultWrapper
public MergeConflictResultWrapper(MergeConflictResult mergeConflictResult, Lazy<ByteBufferValueRecord<ByteBuffer>> oldValueProvider, Lazy<ByteBuffer> oldValueByteBufferProvider, RmdWithValueSchemaId oldRmdWithValueSchemaId, ChunkedValueManifestContainer oldValueManifestContainer, ByteBuffer updatedValueBytes, ByteBuffer updatedRmdBytes, Function<Integer, RecordDeserializer<org.apache.avro.generic.GenericRecord>> deserializerProvider)
-
-
Method Details
-
getMergeConflictResult
-
getOldValueByteBufferProvider
-
getOldRmdWithValueSchemaId
-
getOldValueManifestContainer
-
getOldValueProvider
-
getUpdatedValueBytes
-
getUpdatedRmdBytes
-
getValueProvider
Return a best-effort value provider with the following behaviors: 1. returns the new value provider for PUT and UPDATE. 2. returns the old value for DELETE (null for non-existent key). 3. returns null if the value is not available.
-