@InterfaceAudience.LimitedPrivate(value="MapReduce") @InterfaceStability.Unstable public abstract static class Task.CombinerRunner<K,V> extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected Counters.Counter | inputCounter | 
| protected JobConf | job | 
| protected Task.TaskReporter | reporter | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | combine(RawKeyValueIterator iterator,
       OutputCollector<K,V> collector)Run the combiner over a set of inputs. | 
| static <K,V> Task.CombinerRunner<K,V> | create(JobConf job,
      TaskAttemptID taskId,
      Counters.Counter inputCounter,
      Task.TaskReporter reporter,
      OutputCommitter committer) | 
protected final Counters.Counter inputCounter
protected final JobConf job
protected final Task.TaskReporter reporter
public abstract void combine(RawKeyValueIterator iterator, OutputCollector<K,V> collector) throws IOException, InterruptedException, ClassNotFoundException
iterator - the key/value pairs to use as inputcollector - the output collectorIOExceptionInterruptedExceptionClassNotFoundExceptionpublic static <K,V> Task.CombinerRunner<K,V> create(JobConf job, TaskAttemptID taskId, Counters.Counter inputCounter, Task.TaskReporter reporter, OutputCommitter committer) throws ClassNotFoundException
ClassNotFoundExceptionCopyright © 2008–2018 Apache Software Foundation. All rights reserved.