public class TieredStorageSortBuffer extends SortBuffer
SortBasedDataBuffer need not recycle the read target buffer..bufferRecycler, freeSegments, INDEX_ENTRY_SIZE, isFinished, isReleased, lastIndexEntryAddresses, numTotalBytesRead, readIndexEntryAddress, readOrderIndex, recordRemainingBytes, segments, subpartitionReadOrder| Constructor and Description |
|---|
TieredStorageSortBuffer(LinkedList<org.apache.flink.core.memory.MemorySegment> freeSegments,
BufferRecycler bufferRecycler,
int numSubpartitions,
int bufferSize,
int numGuaranteedBuffers,
boolean isPartialRecordAllowed) |
| 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 TieredStorageSortBuffer(LinkedList<org.apache.flink.core.memory.MemorySegment> freeSegments, BufferRecycler bufferRecycler, int numSubpartitions, int bufferSize, int numGuaranteedBuffers, boolean isPartialRecordAllowed)
public BufferWithSubpartition getNextBuffer(@Nullable 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–2025 The Apache Software Foundation. All rights reserved.