Class ParallelMultiKeyResponseWrapper<T extends MultiKeyResponseWrapper>
java.lang.Object
com.linkedin.venice.listener.response.AbstractReadResponse
com.linkedin.venice.listener.response.ParallelMultiKeyResponseWrapper<T>
- All Implemented Interfaces:
ReadResponse
public class ParallelMultiKeyResponseWrapper<T extends MultiKeyResponseWrapper>
extends AbstractReadResponse
-
Method Summary
Modifier and TypeMethodDescriptioncompute(int chunkCount, int chunkSize, IntFunction<ComputeResponseWrapper> responseProvider) getChunk(int chunkIndex) io.netty.buffer.ByteBufintgetStats()N.B.: Only the individual chunks should be passed into code paths that require this API.multiGet(int chunkCount, int chunkSize, IntFunction<MultiGetResponseWrapper> responseProvider) toString()Methods inherited from class com.linkedin.venice.listener.response.AbstractReadResponse
getCompressionStrategy, getRCU, isFound, isStreamingResponse, setCompressionStrategy, setRCU, setStreamingResponse
-
Method Details
-
multiGet
public static ParallelMultiKeyResponseWrapper<MultiGetResponseWrapper> multiGet(int chunkCount, int chunkSize, IntFunction<MultiGetResponseWrapper> responseProvider) -
compute
public static ParallelMultiKeyResponseWrapper<ComputeResponseWrapper> compute(int chunkCount, int chunkSize, IntFunction<ComputeResponseWrapper> responseProvider) -
getChunk
-
getStats
N.B.: Only the individual chunks should be passed into code paths that require this API. If some refactoring causes that assumption to change, then we have a regression. -
getStatsRecorder
- Specified by:
getStatsRecorderin classAbstractReadResponse
-
getResponseBody
public io.netty.buffer.ByteBuf getResponseBody()- Specified by:
getResponseBodyin interfaceReadResponse- Specified by:
getResponseBodyin classAbstractReadResponse
-
getResponseSchemaIdHeader
public int getResponseSchemaIdHeader()- Specified by:
getResponseSchemaIdHeaderin interfaceReadResponse- Specified by:
getResponseSchemaIdHeaderin classAbstractReadResponse
-
toString
-