Interface HashSubpartitionBufferAccumulatorContext
- All Known Implementing Classes:
HashBufferAccumulator
public interface HashSubpartitionBufferAccumulatorContext
This interface is used by
HashSubpartitionBufferAccumulator to operate HashBufferAccumulator.-
Method Summary
Modifier and TypeMethodDescriptionvoidflushAccumulatedBuffers(TieredStorageSubpartitionId subpartitionId, Buffer accumulatedBuffer, int numRemainingConsecutiveBuffers) Flush the accumulatedBuffers of the subpartition.RequestBufferBuilderfrom theBufferPool.
-
Method Details
-
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
-