org.apache.hadoop.examples
Class BaileyBorweinPlouffe.BbpReducer

java.lang.Object
  extended by 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>
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
Reducer.Context
 
Constructor Summary
BaileyBorweinPlouffe.BbpReducer()
           
 
Method Summary
protected  void cleanup(Reducer.Context context)
          Write output to files.
protected  void reduce(org.apache.hadoop.io.LongWritable offset, Iterable<org.apache.hadoop.io.BytesWritable> values, 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
 

Constructor Detail

BaileyBorweinPlouffe.BbpReducer

public BaileyBorweinPlouffe.BbpReducer()
Method Detail

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