Interface HashSubpartitionBufferAccumulatorContext

All Known Implementing Classes:
HashBufferAccumulator

public interface HashSubpartitionBufferAccumulatorContext
This interface is used by HashSubpartitionBufferAccumulator to operate HashBufferAccumulator.
  • Method Details

    • requestBufferBlocking

      BufferBuilder requestBufferBlocking()
      Request BufferBuilder from the BufferPool.
      Returns:
      the requested buffer
    • flushAccumulatedBuffers

      void flushAccumulatedBuffers(TieredStorageSubpartitionId subpartitionId, Buffer accumulatedBuffer, int numRemainingConsecutiveBuffers)
      Flush the accumulated Buffers of the subpartition.
      Parameters:
      subpartitionId - the subpartition id
      accumulatedBuffer - the accumulated buffer
      numRemainingConsecutiveBuffers - number of buffers that would be passed in the following invocations and should be written to the same segment as this one