cgl.imr.base
Interface MapOutputCollector

All Known Implementing Classes:
MapOutputCollectorImpl

public interface MapOutputCollector

Captures the functionality of the collector interface for Map task outputs.


Method Summary
 void collect(Key key, Value val)
          Collect pairs produced by the map task.
 List<ReduceInput> getReduceInputs()
          Generate and returns the reduce inputs after grouping the pairs using some algorithm such as hashing.
 

Method Detail

collect

void collect(Key key,
             Value val)
Collect pairs produced by the map task.

Parameters:
key - A Key generated by the map task.
val - Value associated with the above Key.

getReduceInputs

List<ReduceInput> getReduceInputs()
Generate and returns the reduce inputs after grouping the pairs using some algorithm such as hashing.

Returns:
List of reduce inputs.


For comments and suggestions please send e-mail to