Class HashBasedDataBuffer

java.lang.Object
org.apache.flink.runtime.io.network.partition.HashBasedDataBuffer
All Implemented Interfaces:
DataBuffer

public class HashBasedDataBuffer extends Object implements DataBuffer
* A DataBuffer implementation which sorts all appended records only by subpartition index. Records of the same subpartition keep the appended order.

Different from the SortBasedDataBuffer, in this DataBuffer implementation, memory segment boundary serves as the nature data boundary of different subpartitions, which means that one memory segment can never contain data from different subpartitions.

  • Constructor Details

    • HashBasedDataBuffer

      public HashBasedDataBuffer(LinkedList<org.apache.flink.core.memory.MemorySegment> freeSegments, BufferRecycler bufferRecycler, int numSubpartitions, int bufferSize, int numGuaranteedBuffers, @Nullable int[] customReadOrder)
  • Method Details