public class PipelinedSorter extends ExternalSorter
ExternalSorter.MapBufferTooSmallException| Modifier and Type | Field and Description |
|---|---|
protected LinkedList<ByteBuffer> |
bufferList |
static int |
MAP_OUTPUT_INDEX_RECORD_LENGTH
The size of each record in the index file for the map-outputs.
|
additionalSpillBytesRead, additionalSpillBytesWritten, availableMemoryMb, codec, combiner, comparator, conf, fileOutputByteCounter, finalIndexFile, finalOutputFile, ifileBufferSize, ifileReadAhead, ifileReadAheadLength, keyClass, keySerializer, mapOutputByteCounter, mapOutputFile, mapOutputRecordCounter, nullProgressable, numAdditionalSpills, numSpills, outputBytesWithOverheadCounter, outputContext, partitioner, partitions, rfs, serializationFactory, sorter, spilledRecordsCounter, spillFileIndexPaths, spillFilePaths, 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() |
void |
sort() |
void |
spill() |
void |
write(Object key,
Object value) |
close, getFinalIndexFile, getFinalOutputFile, getInitialMemoryRequirement, getMapOutput, getNumSpills, getShuffleHeader, getSortedStream, runCombineProcessor, sameVolRename, writepublic static final int MAP_OUTPUT_INDEX_RECORD_LENGTH
protected final LinkedList<ByteBuffer> bufferList
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 void spill()
throws IOException
IOExceptionpublic void flush()
throws IOException
flush in class ExternalSorterIOExceptionCopyright © 2015 Apache Software Foundation. All rights reserved.