Class TieredStorageSortBuffer

    • Constructor Detail

      • TieredStorageSortBuffer

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

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