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 |
---|
QuasiMonteCarlo.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 {ture->numInside, false->numOutside}IOException
InterruptedException
Copyright © 2015 Apache Software Foundation. All Rights Reserved.