@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.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 |
---|
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>
IOException
ClassNotFoundException
public void collect(K key, V value, int partition) throws IOException
collect
in interface MapOutputCollector<K,V>
IOException
public int compare(int mi, int mj)
compare
in interface org.apache.hadoop.util.IndexedSortable
IndexedSortable.compare(int, int)
public void swap(int mi, int mj)
swap
in interface org.apache.hadoop.util.IndexedSortable
IndexedSortable.swap(int, int)
public void flush() throws IOException, ClassNotFoundException, InterruptedException
flush
in interface MapOutputCollector<K,V>
IOException
ClassNotFoundException
InterruptedException
public void close()
close
in interface MapOutputCollector<K,V>
Copyright © 2016 Apache Software Foundation. All Rights Reserved.