public static class PiEstimator.PiMapper extends MapReduceBase implements Mapper<LongWritable,LongWritable,BooleanWritable,LongWritable>
| 构造器和说明 |
|---|
PiEstimator.PiMapper() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
map(LongWritable offset,
LongWritable size,
OutputCollector<BooleanWritable,LongWritable> out,
Reporter reporter)
Map method.
|
close, configureclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigurepublic void map(LongWritable offset, LongWritable size, OutputCollector<BooleanWritable,LongWritable> out, Reporter reporter) throws IOException
map 在接口中 Mapper<LongWritable,LongWritable,BooleanWritable,LongWritable>offset - samples starting from the (offset+1)th sample.size - the number of samples for this mapout - output {ture->numInside, false->numOutside}reporter - IOExceptionCopyright © 2009 The Apache Software Foundation