@InterfaceAudience.LimitedPrivate(value="MapReduce") @InterfaceStability.Unstable public static class MapTask.MapOutputBuffer<K,V> extends Object implements MapOutputCollector<K,V>, IndexedSortable
| Modifier and Type | Class and Description |
|---|---|
protected class |
MapTask.MapOutputBuffer.BlockingBuffer
Inner class managing the spill of serialized records to disk.
|
class |
MapTask.MapOutputBuffer.Buffer |
protected class |
MapTask.MapOutputBuffer.InMemValBytes
Inner class wrapping valuebytes, used for appendRaw.
|
protected class |
MapTask.MapOutputBuffer.MRResultIterator |
protected class |
MapTask.MapOutputBuffer.SpillThread |
MapOutputCollector.Context| Constructor and Description |
|---|
MapTask.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 IndexedSortableIndexedSortable.compare(int, int)public void swap(int mi,
int mj)
swap in interface 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 © 2013 Apache Software Foundation. All rights reserved.