public static class QuasiMonteCarlo.QmcMapper extends Mapper<LongWritable,LongWritable,BooleanWritable,LongWritable>
Mapper.Context
Constructor and Description |
---|
QuasiMonteCarlo.QmcMapper() |
Modifier and Type | Method and Description |
---|---|
void |
map(LongWritable offset,
LongWritable size,
Mapper.Context context)
Map method.
|
public void map(LongWritable offset, LongWritable size, Mapper.Context context) throws IOException, InterruptedException
map
in class 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}IOException
InterruptedException
Copyright © 2013 Apache Software Foundation. All rights reserved.