public class ProducerMergedPartitionFileWriter extends Object implements PartitionFileWriter
PartitionFileWriter with producer-side merge mode. In this mode,
the shuffle data is written in the producer side, the consumer side need to read multiple
producers to get its partition data.
Note that one partition file written by the ProducerMergedPartitionFileWriter may
contain the data of multiple subpartitions.
PartitionFileWriter.SegmentBufferContext, PartitionFileWriter.SubpartitionBufferContext| 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.
|
public CompletableFuture<Void> write(TieredStoragePartitionId partitionId, List<PartitionFileWriter.SubpartitionBufferContext> buffersToWrite)
PartitionFileWriterwrite in interface PartitionFileWriterpartitionId - the partition idbuffersToWrite - the buffers to be written to the partition fileCompletableFuture is completed, the written process is completed.public void release()
PartitionFileWriterPartitionFileWriter.release in interface PartitionFileWriterCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.