Class MapOutputCommitMessage
Object
org.apache.spark.shuffle.api.metadata.MapOutputCommitMessage
:: Private ::
Represents the result of writing map outputs for a shuffle map task.
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).
-
Method Summary
Modifier and TypeMethodDescriptionlong[]
static MapOutputCommitMessage
of
(long[] partitionLengths) static MapOutputCommitMessage
of
(long[] partitionLengths, MapOutputMetadata mapOutputMetadata)
-
Method Details
-
of
-
of
public static MapOutputCommitMessage of(long[] partitionLengths, MapOutputMetadata mapOutputMetadata) -
getPartitionLengths
public long[] getPartitionLengths() -
getMapOutputMetadata
-