org.apache.nutch.mapReduce.lib
Class IdentityReducer

java.lang.Object
  extended byorg.apache.nutch.mapReduce.lib.IdentityReducer
All Implemented Interfaces:
Configurable, Reducer

public class IdentityReducer
extends Object
implements Reducer

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


Constructor Summary
IdentityReducer()
           
 
Method Summary
 void configure(JobConf job)
          Initializes a new instance from a JobConf.
 void reduce(WritableComparable key, Iterator values, OutputCollector output)
          Writes all keys and values directly to output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityReducer

public IdentityReducer()
Method Detail

configure

public void configure(JobConf job)
Description copied from interface: Configurable
Initializes a new instance from a JobConf.

Specified by:
configure in interface Configurable
Parameters:
job - the configuration

reduce

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

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


Copyright © 2006 The Apache Software Foundation