net.nutch.mapReduce
Class DefaultReducer

java.lang.Object
  extended bynet.nutch.mapReduce.DefaultReducer
All Implemented Interfaces:
Reducer

public class DefaultReducer
extends Object
implements Reducer

The default Reducer. Performs no reduction, writing all input values directly to the output.


Constructor Summary
DefaultReducer()
           
 
Method Summary
 void reduce(WritableComparable key, Iterator values, OutputCollector results)
          Writes all values directly to results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultReducer

public DefaultReducer()
Method Detail

reduce

public void reduce(WritableComparable key,
                   Iterator values,
                   OutputCollector results)
            throws IOException
Writes all values directly to results.

Specified by:
reduce in interface Reducer
Parameters:
key - the key
values - the values to combine
results - to collect combined values
Throws:
IOException


Copyright © 2005 The Nutch Organization.