|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapred.MapReduceBase
org.apache.hadoop.examples.PiEstimator.PiReducer
public static class PiEstimator.PiReducer
Reducer class for Pi estimation. Accumulate points inside/outside results from the mappers.
| Constructor Summary | |
|---|---|
PiEstimator.PiReducer()
|
|
| Method Summary | |
|---|---|
void |
close()
Reduce task done, write output to a file. |
void |
configure(JobConf job)
Store job configuration. |
void |
reduce(BooleanWritable isInside,
Iterator<LongWritable> values,
OutputCollector<WritableComparable<?>,Writable> output,
Reporter reporter)
Accumulate number of points inside/outside results from the mappers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PiEstimator.PiReducer()
| Method Detail |
|---|
public void configure(JobConf job)
configure in interface JobConfigurableconfigure in class MapReduceBasejob - the configuration
public void reduce(BooleanWritable isInside,
Iterator<LongWritable> values,
OutputCollector<WritableComparable<?>,Writable> output,
Reporter reporter)
throws IOException
reduce in interface Reducer<BooleanWritable,LongWritable,WritableComparable<?>,Writable>isInside - Is the points inside?values - An iterator to a list of point countsoutput - dummy, not used here.reporter -
IOException
public void close()
throws IOException
close in interface Closeableclose in class MapReduceBaseIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||