public static class QuasiMonteCarlo.QmcReducer extends Reducer<BooleanWritable,LongWritable,WritableComparable<?>,Writable>
Reducer.Context
Constructor and Description |
---|
QuasiMonteCarlo.QmcReducer() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup(Reducer.Context context)
Reduce task done, write output to a file.
|
void |
reduce(BooleanWritable isInside,
Iterable<LongWritable> values,
Reducer.Context context)
Accumulate number of points inside/outside results from the mappers.
|
public void reduce(BooleanWritable isInside, Iterable<LongWritable> values, Reducer.Context context) throws IOException, InterruptedException
reduce
in class Reducer<BooleanWritable,LongWritable,WritableComparable<?>,Writable>
isInside
- Is the points inside?values
- An iterator to a list of point countscontext
- dummy, not used here.IOException
InterruptedException
public void cleanup(Reducer.Context context) throws IOException
cleanup
in class Reducer<BooleanWritable,LongWritable,WritableComparable<?>,Writable>
IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.