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 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.
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,
Reducer.Context context)
throws IOException,
InterruptedException
- Concatenate map outputs.
- Overrides:
reduce
in class 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(Reducer.Context context)
throws IOException,
InterruptedException
- Write output to files.
- Overrides:
cleanup
in class 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 © 2009 The Apache Software Foundation