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