public static class PiEstimator.PiMapper extends MapReduceBase implements Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BooleanWritable,org.apache.hadoop.io.LongWritable>
| Constructor and Description |
|---|
PiEstimator.PiMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
map(org.apache.hadoop.io.LongWritable offset,
org.apache.hadoop.io.LongWritable size,
OutputCollector<org.apache.hadoop.io.BooleanWritable,org.apache.hadoop.io.LongWritable> out,
Reporter reporter)
Map method.
|
close, configureclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigurepublic void map(org.apache.hadoop.io.LongWritable offset,
org.apache.hadoop.io.LongWritable size,
OutputCollector<org.apache.hadoop.io.BooleanWritable,org.apache.hadoop.io.LongWritable> out,
Reporter reporter)
throws java.io.IOException
map in interface Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BooleanWritable,org.apache.hadoop.io.LongWritable>offset - samples starting from the (offset+1)th sample.size - the number of samples for this mapout - output {ture->numInside, false->numOutside}reporter - java.io.IOExceptionCopyright © 2009 The Apache Software Foundation