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