Package org.apache.hadoop.mapred.lib
Class IdentityReducer<K,V>
java.lang.Object
org.apache.hadoop.mapred.MapReduceBase
org.apache.hadoop.mapred.lib.IdentityReducer<K,V>
- All Implemented Interfaces:
Closeable,AutoCloseable,Closeable,JobConfigurable,Reducer<K,V, K, V>
Performs no reduction, writing all input values directly to the output.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.hadoop.mapred.MapReduceBase
close, configureMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.mapred.JobConfigurable
configure
-
Constructor Details
-
IdentityReducer
public IdentityReducer()
-
-
Method Details
-
reduce
public void reduce(K key, Iterator<V> values, OutputCollector<K, V> output, Reporter reporter) throws IOExceptionWrites all keys and values directly to output.
-