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.ByteBuf
int
getStats()
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:
getStatsRecorder
in classAbstractReadResponse
-
getResponseBody
public io.netty.buffer.ByteBuf getResponseBody()- Specified by:
getResponseBody
in interfaceReadResponse
- Specified by:
getResponseBody
in classAbstractReadResponse
-
getResponseSchemaIdHeader
public int getResponseSchemaIdHeader()- Specified by:
getResponseSchemaIdHeader
in interfaceReadResponse
- Specified by:
getResponseSchemaIdHeader
in classAbstractReadResponse
-
toString
-