java.lang.Object
org.apache.flink.runtime.io.network.partition.SortBuffer
org.apache.flink.runtime.io.network.partition.hybrid.tiered.storage.TieredStorageSortBuffer
All Implemented Interfaces:
DataBuffer

public class TieredStorageSortBuffer extends SortBuffer
When getting buffers, The SortBasedDataBuffer need not recycle the read target buffer..
  • Constructor Details

    • TieredStorageSortBuffer

      public TieredStorageSortBuffer(LinkedList<org.apache.flink.core.memory.MemorySegment> freeSegments, BufferRecycler bufferRecycler, int numSubpartitions, int bufferSize, int numGuaranteedBuffers, boolean isPartialRecordAllowed)
  • Method Details

    • getNextBuffer

      public BufferWithSubpartition getNextBuffer(@Nullable org.apache.flink.core.memory.MemorySegment transitBuffer)
      Description copied from interface: DataBuffer
      Copies data in this DataBuffer to the target MemorySegment in subpartition index order and returns BufferWithSubpartition which contains the copied data and the corresponding subpartition index.