org.apache.hadoop.examples
Class PiEstimator.PiReducer
java.lang.Object
org.apache.hadoop.mapred.MapReduceBase
org.apache.hadoop.examples.PiEstimator.PiReducer
- All Implemented Interfaces:
- Closeable, JobConfigurable, Reducer
- Enclosing class:
- PiEstimator
public static class PiEstimator.PiReducer
- extends MapReduceBase
- implements Reducer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PiEstimator.PiReducer
public PiEstimator.PiReducer()
configure
public void configure(JobConf job)
- Reducer configuration.
- Specified by:
configure in interface JobConfigurable- Overrides:
configure in class MapReduceBase
- Parameters:
job - the configuration
reduce
public void reduce(WritableComparable key,
Iterator values,
OutputCollector output,
Reporter reporter)
throws IOException
- Reduce method.
- Specified by:
reduce in interface Reducer
- Parameters:
key - values - output - reporter -
- Throws:
IOException
close
public void close()
throws IOException
- Description copied from class:
MapReduceBase
- Default implementation that does nothing.
- Specified by:
close in interface Closeable- Overrides:
close in class MapReduceBase
- Throws:
IOException
Copyright © 2006 The Apache Software Foundation