Class SortBasedDataBuffer

    • Constructor Detail

      • SortBasedDataBuffer

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

      • getNextBuffer

        public BufferWithSubpartition getNextBuffer​(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.