org.apache.hadoop.mapred.MapOutputCollector<K,V>, org.apache.hadoop.util.IndexedSortablepublic class MapRFsOutputBuffer<K,V>
extends java.lang.Object
implements org.apache.hadoop.mapred.MapOutputCollector<K,V>, org.apache.hadoop.util.IndexedSortable
| Modifier and Type | Class | Description |
|---|---|---|
protected class |
MapRFsOutputBuffer.BlockingBuffer |
Inner class managing the spill of serialized records to disk.
|
class |
MapRFsOutputBuffer.Buffer |
|
protected class |
MapRFsOutputBuffer.InMemValBytes |
Inner class wrapping valuebytes, used for appendRaw.
|
| Constructor | Description |
|---|---|
MapRFsOutputBuffer() |
| Modifier and Type | Method | 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(org.apache.hadoop.mapred.MapOutputCollector.Context context) |
|
protected void |
mergeParts() |
|
protected void |
sortAndSpill() |
|
protected boolean |
sortAndSpillWrapper() |
|
void |
swap(int mi,
int mj) |
Swap metadata for items i, j
|
public void init(org.apache.hadoop.mapred.MapOutputCollector.Context context)
throws java.io.IOException,
java.lang.ClassNotFoundException
public 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 close()
protected boolean sortAndSpillWrapper()
throws java.io.IOException,
java.lang.ClassNotFoundException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionjava.lang.InterruptedExceptionprotected void sortAndSpill()
throws java.io.IOException,
java.lang.ClassNotFoundException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionjava.lang.InterruptedExceptionprotected void mergeParts()
throws java.io.IOException,
java.lang.InterruptedException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.InterruptedExceptionjava.lang.ClassNotFoundExceptionpublic void collect(K key, V value, int partition) throws java.io.IOException
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.