Package com.linkedin.venice.writer
Interface ChunkAwareCallback
- All Superinterfaces:
PubSubProducerCallback
- All Known Implementing Classes:
ActiveActiveProducerCallback,LeaderProducerCallback
The
VeniceWriter, upon detecting an instance of this class being passed to it, will always call
setChunkingInfo(byte[], ByteBuffer[], ChunkedValueManifest, ByteBuffer[], ChunkedValueManifest, ChunkedValueManifest, ChunkedValueManifest) whenever
processing a MessageType.PUT, whether it is chunked or not.-
Method Summary
Modifier and TypeMethodDescriptionvoidsetChunkingInfo(byte[] key, ByteBuffer[] valueChunks, ChunkedValueManifest chunkedValueManifest, ByteBuffer[] rmdChunks, ChunkedValueManifest chunkedRmdManifest, ChunkedValueManifest oldValueManifest, ChunkedValueManifest oldRmdManifest) For all PUT operations, the is guaranteed to be passed via this function, whether chunking is enabled or not, and whether the value is chunked or not.Methods inherited from interface com.linkedin.venice.pubsub.api.PubSubProducerCallback
onCompletion, setInternalCallback
-
Method Details
-
setChunkingInfo
void setChunkingInfo(byte[] key, ByteBuffer[] valueChunks, ChunkedValueManifest chunkedValueManifest, ByteBuffer[] rmdChunks, ChunkedValueManifest chunkedRmdManifest, ChunkedValueManifest oldValueManifest, ChunkedValueManifest oldRmdManifest) For all PUT operations, the is guaranteed to be passed via this function, whether chunking is enabled or not, and whether the value is chunked or not. The other two parameters are null if the value is not chunked.- Parameters:
key- A byte[] corresponding to the top-level key written to Kafka, potentially including a chunking suffixvalueChunks- An array ofByteBufferwhere the backing array has sufficient headroom to prepend Venice's headerchunkedValueManifest- TheChunkedValueManifestof the new chunked valuermdChunks- An array ofByteBufferwhere the backing array has sufficient headroom to prepend Venice's headerchunkedRmdManifest- TheChunkedValueManifestof the new chunked RMDoldValueManifest- TheChunkedValueManifestof the previous chunked valueoldRmdManifest- TheChunkedValueManifestof the previous chunked RMD
-