org.apache.hadoop.mapred
Interface OutputCollector


public interface OutputCollector

Passed to Mapper and Reducer implementations to collect output data.


Method Summary
 void collect(WritableComparable key, Writable value)
          Adds a key/value pair to the output.
 

Method Detail

collect

void collect(WritableComparable key,
             Writable value)
             throws IOException
Adds a key/value pair to the output.

Parameters:
key - the key to add
value - to value to add
Throws:
IOException


Copyright © 2006 The Apache Software Foundation