@InterfaceAudience.Private @InterfaceStability.Unstable public static class Task.CombineOutputCollector<K,V> extends Object implements OutputCollector<K,V>
Constructor and Description |
---|
CombineOutputCollector(Counters.Counter outCounter,
org.apache.hadoop.util.Progressable progressable,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
collect(K key,
V value)
Adds a key/value pair to the output.
|
void |
setWriter(IFile.Writer<K,V> writer) |
public CombineOutputCollector(Counters.Counter outCounter, org.apache.hadoop.util.Progressable progressable, org.apache.hadoop.conf.Configuration conf)
public void setWriter(IFile.Writer<K,V> writer)
public void collect(K key, V value) throws IOException
OutputCollector
collect
in interface OutputCollector<K,V>
key
- the key to collect.value
- to value to collect.IOException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.