@InterfaceAudience.LimitedPrivate(value="MapReduce") @InterfaceStability.Unstable public static class MapTask.MapOutputBuffer<K,V> extends Object implements MapOutputCollector<K,V>, org.apache.hadoop.util.IndexedSortable
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | MapTask.MapOutputBuffer.BlockingBufferInner class managing the spill of serialized records to disk. | 
| class  | MapTask.MapOutputBuffer.Buffer | 
| protected class  | MapTask.MapOutputBuffer.InMemValBytesInner class wrapping valuebytes, used for appendRaw. | 
| protected class  | MapTask.MapOutputBuffer.MRResultIterator | 
| protected class  | MapTask.MapOutputBuffer.SpillThread | 
MapOutputCollector.Context| Constructor and Description | 
|---|
| MapOutputBuffer() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| void | collect(K key,
       V value,
       int partition)Serialize the key, value to intermediate storage. | 
| int | compare(int mi,
       int mj)Compare logical range, st i, j MOD offset capacity. | 
| void | flush() | 
| void | init(MapOutputCollector.Context context) | 
| void | swap(int mi,
    int mj)Swap metadata for items i, j | 
public void init(MapOutputCollector.Context context) throws IOException, ClassNotFoundException
init in interface MapOutputCollector<K,V>IOExceptionClassNotFoundExceptionpublic void collect(K key, V value, int partition) throws IOException
collect in interface MapOutputCollector<K,V>IOExceptionpublic int compare(int mi,
                   int mj)
compare in interface org.apache.hadoop.util.IndexedSortableIndexedSortable.compare(int, int)public void swap(int mi,
                 int mj)
swap in interface org.apache.hadoop.util.IndexedSortableIndexedSortable.swap(int, int)public void flush()
           throws IOException,
                  ClassNotFoundException,
                  InterruptedException
flush in interface MapOutputCollector<K,V>IOExceptionClassNotFoundExceptionInterruptedExceptionpublic void close()
close in interface MapOutputCollector<K,V>Copyright © 2008–2018 Apache Software Foundation. All rights reserved.