Class MultiGetRecordStreamDecoder<K,V>
java.lang.Object
com.linkedin.venice.client.store.streaming.AbstractRecordStreamDecoder<MultiGetResponseRecordV1,K,V>
com.linkedin.venice.client.store.streaming.MultiGetRecordStreamDecoder<K,V>
- All Implemented Interfaces:
RecordStreamDecoder
,TransportClientStreamingCallback
public class MultiGetRecordStreamDecoder<K,V>
extends AbstractRecordStreamDecoder<MultiGetResponseRecordV1,K,V>
-
Constructor Summary
ConstructorDescriptionMultiGetRecordStreamDecoder
(List<K> keyList, TrackingStreamingCallback<K, V> callback, Executor deserializationExecutor, RecordDeserializer<StreamingFooterRecordV1> streamingFooterDeserializer, Function<Integer, RecordDeserializer<V>> valueDeserializerProvider, BiFunction<CompressionStrategy, ByteBuffer, ByteBuffer> decompressor) -
Method Summary
Modifier and TypeMethodDescriptiongetEnvelopeDeserializer
(int schemaId) protected int
getKeyIndex
(MultiGetResponseRecordV1 envelope) protected StreamingFooterRecordV1
protected V
getValueRecord
(MultiGetResponseRecordV1 envelope, CompressionStrategy compression) Methods inherited from class com.linkedin.venice.client.store.streaming.AbstractRecordStreamDecoder
onCompletion, onDataReceived, onHeaderReceived
-
Constructor Details
-
MultiGetRecordStreamDecoder
public MultiGetRecordStreamDecoder(List<K> keyList, TrackingStreamingCallback<K, V> callback, Executor deserializationExecutor, RecordDeserializer<StreamingFooterRecordV1> streamingFooterDeserializer, Function<Integer, RecordDeserializer<V>> valueDeserializerProvider, BiFunction<CompressionStrategy, ByteBuffer, ByteBuffer> decompressor)
-
-
Method Details
-
getEnvelopeDeserializer
protected ReadEnvelopeChunkedDeserializer<MultiGetResponseRecordV1> getEnvelopeDeserializer(int schemaId) - Specified by:
getEnvelopeDeserializer
in classAbstractRecordStreamDecoder<MultiGetResponseRecordV1,
K, V>
-
getValueRecord
- Specified by:
getValueRecord
in classAbstractRecordStreamDecoder<MultiGetResponseRecordV1,
K, V>
-
getKeyIndex
- Specified by:
getKeyIndex
in classAbstractRecordStreamDecoder<MultiGetResponseRecordV1,
K, V>
-