Interface HashSubpartitionBufferAccumulatorContext
-
- All Known Implementing Classes:
HashBufferAccumulator
public interface HashSubpartitionBufferAccumulatorContextThis interface is used byHashSubpartitionBufferAccumulatorto operateHashBufferAccumulator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidflushAccumulatedBuffers(TieredStorageSubpartitionId subpartitionId, Buffer accumulatedBuffer, int numRemainingConsecutiveBuffers)Flush the accumulatedBuffers of the subpartition.BufferBuilderrequestBufferBlocking()RequestBufferBuilderfrom theBufferPool.
-
-
-
Method Detail
-
requestBufferBlocking
BufferBuilder requestBufferBlocking()
RequestBufferBuilderfrom theBufferPool.- Returns:
- the requested buffer
-
flushAccumulatedBuffers
void flushAccumulatedBuffers(TieredStorageSubpartitionId subpartitionId, Buffer accumulatedBuffer, int numRemainingConsecutiveBuffers)
Flush the accumulatedBuffers of the subpartition.- Parameters:
subpartitionId- the subpartition idaccumulatedBuffer- the accumulated buffernumRemainingConsecutiveBuffers- number of buffers that would be passed in the following invocations and should be written to the same segment as this one
-
-