public interface PartitionFileWriter
PartitionFileWriter interface defines the write logic for different types of shuffle
files.| Modifier and Type | Interface and Description |
|---|---|
static class |
PartitionFileWriter.SegmentBufferContext
The
PartitionFileWriter.SegmentBufferContext contains all the buffers belonging to the segment. |
static class |
PartitionFileWriter.SubpartitionBufferContext
The
PartitionFileWriter.SubpartitionBufferContext contains all the buffers belonging to one subpartition. |
| Modifier and Type | Method and Description |
|---|---|
void |
release()
Release all the resources of the
PartitionFileWriter. |
CompletableFuture<Void> |
write(TieredStoragePartitionId partitionId,
List<PartitionFileWriter.SubpartitionBufferContext> buffersToWrite)
Write the buffers to the partition file.
|
CompletableFuture<Void> write(TieredStoragePartitionId partitionId, List<PartitionFileWriter.SubpartitionBufferContext> buffersToWrite)
partitionId - the partition idbuffersToWrite - the buffers to be written to the partition fileCompletableFuture is completed, the written process is completed.void release()
PartitionFileWriter.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.