public class PipelinedSorter extends ExternalSorter
ExternalSorter.MapBufferTooSmallException| Modifier and Type | Field and Description |
|---|---|
static int |
MAP_OUTPUT_INDEX_RECORD_LENGTH
The size of each record in the index file for the map-outputs.
|
additionalSpillBytesRead, additionalSpillBytesWritten, availableMemoryMb, cleanup, codec, combiner, comparator, conf, fileOutputByteCounter, finalIndexFile, finalMergeEnabled, finalOutputFile, ifileBufferSize, ifileReadAhead, ifileReadAheadLength, keyClass, keySerializer, mapOutputByteCounter, mapOutputFile, mapOutputRecordCounter, numAdditionalSpills, numShuffleChunks, numSpills, outputBytesWithOverheadCounter, outputContext, partitioner, partitions, partitionStats, progressable, rfs, sendEmptyPartitionDetails, serializationFactory, sorter, spilledRecordsCounter, spillFileIndexPaths, spillFilePaths, statsReporter, valClass, valSerializer| Constructor and Description |
|---|
PipelinedSorter(org.apache.tez.runtime.api.OutputContext outputContext,
org.apache.hadoop.conf.Configuration conf,
int numOutputs,
long initialMemoryAvailable) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
boolean |
needsRLE() |
void |
sort() |
boolean |
spill(boolean ignoreEmptySpills) |
void |
write(Object key,
Object value) |
cleanup, cleanup, cleanup, close, getFinalIndexFile, getFinalOutputFile, getInitialMemoryRequirement, getMapOutput, getNumSpills, getPartitionStats, getShuffleHeader, getSortedStream, isFinalMergeEnabled, reportDetailedPartitionStats, reportPartitionStats, reportStatistics, runCombineProcessor, sameVolRename, writepublic static final int MAP_OUTPUT_INDEX_RECORD_LENGTH
public PipelinedSorter(org.apache.tez.runtime.api.OutputContext outputContext,
org.apache.hadoop.conf.Configuration conf,
int numOutputs,
long initialMemoryAvailable)
throws IOException
IOExceptionpublic void sort()
throws IOException
IOExceptionpublic void write(Object key, Object value) throws IOException
write in class ExternalSorterIOExceptionpublic boolean spill(boolean ignoreEmptySpills)
throws IOException
IOExceptionpublic void flush()
throws IOException
flush in class ExternalSorterIOException@InterfaceAudience.Private public boolean needsRLE()
Copyright © 2017 Apache Software Foundation. All rights reserved.