Class SingleGetChunkingAdapter
- java.lang.Object
-
- com.linkedin.davinci.storage.chunking.SingleGetChunkingAdapter
-
- All Implemented Interfaces:
ChunkingAdapter<io.netty.buffer.CompositeByteBuf,ValueRecord>
public class SingleGetChunkingAdapter extends java.lang.Object implements ChunkingAdapter<io.netty.buffer.CompositeByteBuf,ValueRecord>
Single get chunking adapter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChunkIntoContainer(io.netty.buffer.CompositeByteBuf byteBufs, int chunkIndex, byte[] valueChunk)Used to incrementally add a {@param valueChunk} into the {@param CHUNKS_CONTAINER} container.io.netty.buffer.CompositeByteBufconstructChunksContainer(ChunkedValueManifest chunkedValueManifest)Used to construct the right kind of {@param CHUNKS_CONTAINER} container (according to the query code) to hold a large value which needs to be incrementally re-assembled from many smaller chunks.ValueRecordconstructValue(int schemaId, byte[] fullBytes)This function can be implemented by the adapters which need fewer parameters.ValueRecordconstructValue(int schemaId, io.netty.buffer.CompositeByteBuf byteBufs)This function can be implemented by the adapters which need fewer parameters.static ValueRecordget(AbstractStorageEngine store, int partition, byte[] key, boolean isChunked, ReadResponseStats response)static ValueRecordgetReplicationMetadata(AbstractStorageEngine store, int partition, byte[] key, boolean isChunked, ChunkedValueManifestContainer manifestContainer)-
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 Detail
-
addChunkIntoContainer
public void addChunkIntoContainer(io.netty.buffer.CompositeByteBuf byteBufs, int chunkIndex, byte[] valueChunk)Description copied from interface:ChunkingAdapterUsed to incrementally add a {@param valueChunk} into the {@param CHUNKS_CONTAINER} container.- Specified by:
addChunkIntoContainerin interfaceChunkingAdapter<io.netty.buffer.CompositeByteBuf,ValueRecord>
-
constructChunksContainer
public io.netty.buffer.CompositeByteBuf constructChunksContainer(ChunkedValueManifest chunkedValueManifest)
Description copied from interface:ChunkingAdapterUsed to construct the right kind of {@param CHUNKS_CONTAINER} container (according to the query code) to hold a large value which needs to be incrementally re-assembled from many smaller chunks.- Specified by:
constructChunksContainerin interfaceChunkingAdapter<io.netty.buffer.CompositeByteBuf,ValueRecord>
-
constructValue
public ValueRecord constructValue(int schemaId, io.netty.buffer.CompositeByteBuf byteBufs)
Description copied from interface:ChunkingAdapterThis function can be implemented by the adapters which need fewer parameters.- Specified by:
constructValuein interfaceChunkingAdapter<io.netty.buffer.CompositeByteBuf,ValueRecord>
-
constructValue
public ValueRecord constructValue(int schemaId, byte[] fullBytes)
Description copied from interface:ChunkingAdapterThis function can be implemented by the adapters which need fewer parameters.- Specified by:
constructValuein interfaceChunkingAdapter<io.netty.buffer.CompositeByteBuf,ValueRecord>
-
get
public static ValueRecord get(AbstractStorageEngine store, int partition, byte[] key, boolean isChunked, ReadResponseStats response)
-
getReplicationMetadata
public static ValueRecord getReplicationMetadata(AbstractStorageEngine store, int partition, byte[] key, boolean isChunked, ChunkedValueManifestContainer manifestContainer)
-
-