ShuffleExecutorComponents¶
ShuffleExecutorComponents is an abstraction of executor shuffle builders.
Contract¶
createMapOutputWriter¶
ShuffleMapOutputWriter createMapOutputWriter(
int shuffleId,
long mapTaskId,
int numPartitions) throws IOException
Creates a ShuffleMapOutputWriter
Used when:
BypassMergeSortShuffleWriteris requested to write recordsUnsafeShuffleWriteris requested to mergeSpills and mergeSpillsUsingStandardWriterSortShuffleWriteris requested to write records
createSingleFileMapOutputWriter¶
Optional<SingleSpillShuffleMapOutputWriter> createSingleFileMapOutputWriter(
int shuffleId,
long mapId) throws IOException
Creates a SingleSpillShuffleMapOutputWriter
Default: empty
Used when:
UnsafeShuffleWriteris requested to mergeSpills
initializeExecutor¶
void initializeExecutor(
String appId,
String execId,
Map<String, String> extraConfigs);
Used when:
SortShuffleManagerutility is used to loadShuffleExecutorComponents