org.apache.hadoop.examples
Class BaileyBorweinPlouffe.BbpReducer
java.lang.Object
org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable>
org.apache.hadoop.examples.BaileyBorweinPlouffe.BbpReducer
- Enclosing class:
- BaileyBorweinPlouffe
public static class BaileyBorweinPlouffe.BbpReducer
- extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable>
Reducer for concatenating map outputs.
| Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer |
org.apache.hadoop.mapreduce.Reducer.Context |
|
Method Summary |
protected void |
cleanup(org.apache.hadoop.mapreduce.Reducer.Context context)
Write output to files. |
protected void |
reduce(org.apache.hadoop.io.LongWritable offset,
Iterable<org.apache.hadoop.io.BytesWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
Concatenate map outputs. |
| Methods inherited from class org.apache.hadoop.mapreduce.Reducer |
run, setup |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaileyBorweinPlouffe.BbpReducer
public BaileyBorweinPlouffe.BbpReducer()
reduce
protected void reduce(org.apache.hadoop.io.LongWritable offset,
Iterable<org.apache.hadoop.io.BytesWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
throws IOException,
InterruptedException
- Concatenate map outputs.
- Overrides:
reduce in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable>
- Throws:
IOException
InterruptedException
cleanup
protected void cleanup(org.apache.hadoop.mapreduce.Reducer.Context context)
throws IOException,
InterruptedException
- Write output to files.
- Overrides:
cleanup in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable>
- Throws:
IOException
InterruptedException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.