Class BatchGetChunkingAdapter
java.lang.Object
com.linkedin.davinci.storage.chunking.BatchGetChunkingAdapter
- All Implemented Interfaces:
ChunkingAdapter<ByteBuffer,
MultiGetResponseRecordV1>
public class BatchGetChunkingAdapter
extends Object
implements ChunkingAdapter<ByteBuffer,MultiGetResponseRecordV1>
Batch get chunking adapter
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChunkIntoContainer
(ByteBuffer byteBuffer, int chunkIndex, byte[] valueChunk) Used to incrementally add a into the container.constructChunksContainer
(ChunkedValueManifest chunkedValueManifest) Used to construct the right kind of container (according to the query code) to hold a large value which needs to be incrementally re-assembled from many smaller chunks.constructValue
(int schemaId, byte[] fullBytes) This function can be implemented by the adapters which need fewer parameters.constructValue
(int schemaId, ByteBuffer byteBuffer) This function can be implemented by the adapters which need fewer parameters.static MultiGetResponseRecordV1
get
(AbstractStorageEngine store, int partition, ByteBuffer key, boolean isChunked, ReadResponseStats response) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.linkedin.davinci.storage.chunking.ChunkingAdapter
constructValue, constructValue, constructValue
-
Method Details
-
addChunkIntoContainer
Description copied from interface:ChunkingAdapter
Used to incrementally add a into the container.- Specified by:
addChunkIntoContainer
in interfaceChunkingAdapter<ByteBuffer,
MultiGetResponseRecordV1>
-
constructChunksContainer
Description copied from interface:ChunkingAdapter
Used to construct the right kind of container (according to the query code) to hold a large value which needs to be incrementally re-assembled from many smaller chunks.- Specified by:
constructChunksContainer
in interfaceChunkingAdapter<ByteBuffer,
MultiGetResponseRecordV1>
-
constructValue
Description copied from interface:ChunkingAdapter
This function can be implemented by the adapters which need fewer parameters.- Specified by:
constructValue
in interfaceChunkingAdapter<ByteBuffer,
MultiGetResponseRecordV1>
-
constructValue
Description copied from interface:ChunkingAdapter
This function can be implemented by the adapters which need fewer parameters.- Specified by:
constructValue
in interfaceChunkingAdapter<ByteBuffer,
MultiGetResponseRecordV1>
-
get
public static MultiGetResponseRecordV1 get(AbstractStorageEngine store, int partition, ByteBuffer key, boolean isChunked, ReadResponseStats response)
-