@NotThreadSafe public class SortBasedDataBuffer extends SortBuffer
SortBasedDataBuffer should recycle the read target buffer with
the given BufferRecycler.bufferRecycler, freeSegments, INDEX_ENTRY_SIZE, isFinished, isReleased, lastIndexEntryAddresses, numTotalBytesRead, readIndexEntryAddress, readOrderIndex, recordRemainingBytes, segments, subpartitionReadOrder| Constructor and Description |
|---|
SortBasedDataBuffer(LinkedList<org.apache.flink.core.memory.MemorySegment> freeSegments,
BufferRecycler bufferRecycler,
int numSubpartitions,
int bufferSize,
int numGuaranteedBuffers,
int[] customReadOrder) |
| Modifier and Type | Method and Description |
|---|---|
BufferWithSubpartition |
getNextBuffer(org.apache.flink.core.memory.MemorySegment transitBuffer)
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. |
append, copyRecordOrEvent, finish, getSegmentIndexFromPointer, getSegmentOffsetFromPointer, hasRemaining, isFinished, isReleased, numTotalBytes, numTotalRecords, release, updateReadSubpartitionAndIndexEntryAddresspublic SortBasedDataBuffer(LinkedList<org.apache.flink.core.memory.MemorySegment> freeSegments, BufferRecycler bufferRecycler, int numSubpartitions, int bufferSize, int numGuaranteedBuffers, @Nullable int[] customReadOrder)
public BufferWithSubpartition getNextBuffer(org.apache.flink.core.memory.MemorySegment transitBuffer)
DataBufferDataBuffer to the target MemorySegment in subpartition
index order and returns BufferWithSubpartition which contains the copied data and the
corresponding subpartition index.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.