@Private
public final class MapOutputCommitMessage
extends Object
Partition lengths represents the length of each block written in the map task. This can be used for downstream readers to allocate resources, such as in-memory buffers.
Map output writers can choose to attach arbitrary metadata tags to register with a shuffle output tracker (a module that is currently yet to be built in a future iteration of the shuffle storage APIs).
Modifier and Type | Method and Description |
---|---|
java.util.Optional<MapOutputMetadata> |
getMapOutputMetadata() |
long[] |
getPartitionLengths() |
static MapOutputCommitMessage |
of(long[] partitionLengths) |
static MapOutputCommitMessage |
of(long[] partitionLengths,
MapOutputMetadata mapOutputMetadata) |
public static MapOutputCommitMessage of(long[] partitionLengths)
public static MapOutputCommitMessage of(long[] partitionLengths, MapOutputMetadata mapOutputMetadata)
public long[] getPartitionLengths()
public java.util.Optional<MapOutputMetadata> getMapOutputMetadata()