@InterfaceAudience.Private public class BufferPusher<K,V> extends Object implements org.apache.hadoop.mapred.OutputCollector<K,V>
BufferPushee to collect it| Constructor and Description |
|---|
BufferPusher(Class<K> iKClass,
Class<V> iVClass,
NativeDataTarget target) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
collect(K key,
V value) |
void |
collect(K key,
V value,
int partition) |
void |
flush() |
public BufferPusher(Class<K> iKClass, Class<V> iVClass, NativeDataTarget target) throws IOException
IOExceptionpublic void collect(K key, V value, int partition) throws IOException
IOExceptionpublic void collect(K key, V value) throws IOException
collect in interface org.apache.hadoop.mapred.OutputCollector<K,V>IOExceptionpublic void flush()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.