Class 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.