public static class QuasiMonteCarlo.QmcMapper extends org.apache.hadoop.mapreduce.Mapper<LongWritable,LongWritable,BooleanWritable,LongWritable>
org.apache.hadoop.mapreduce.Mapper.Context| Constructor and Description |
|---|
QmcMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
map(LongWritable offset,
LongWritable size,
org.apache.hadoop.mapreduce.Mapper.Context context)
Map method.
|
cleanup, run, setuppublic void map(LongWritable offset, LongWritable size, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
map in class org.apache.hadoop.mapreduce.Mapper<LongWritable,LongWritable,BooleanWritable,LongWritable>offset - samples starting from the (offset+1)th sample.size - the number of samples for this mapcontext - output {ture->numInside, false->numOutside}IOExceptionInterruptedExceptionCopyright © 2018 CERN. All Rights Reserved.