org.apache.hadoop.examples
Class PiEstimator.PiReducer

java.lang.Object
  extended by org.apache.hadoop.mapred.MapReduceBase
      extended by org.apache.hadoop.examples.PiEstimator.PiReducer
All Implemented Interfaces:
Closeable, JobConfigurable, Reducer
Enclosing class:
PiEstimator

public static class PiEstimator.PiReducer
extends MapReduceBase
implements Reducer


Constructor Summary
PiEstimator.PiReducer()
           
 
Method Summary
 void close()
          Default implementation that does nothing.
 void configure(JobConf job)
          Reducer configuration.
 void reduce(WritableComparable key, Iterator values, OutputCollector output, Reporter reporter)
          Reduce method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PiEstimator.PiReducer

public PiEstimator.PiReducer()
Method Detail

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