public static class QuasiMonteCarlo.QmcMapper
extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BooleanWritable,org.apache.hadoop.io.LongWritable>
| Constructor and Description |
|---|
QmcMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
map(org.apache.hadoop.io.LongWritable offset,
org.apache.hadoop.io.LongWritable size,
org.apache.hadoop.mapreduce.Mapper.Context context)
Map method.
|
public void map(org.apache.hadoop.io.LongWritable offset,
org.apache.hadoop.io.LongWritable size,
org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
map in class org.apache.hadoop.mapreduce.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 mapcontext - output {true->numInside, false->numOutside}IOExceptionInterruptedExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.