Interface OutputCollector<K,V>


@Public @Stable public interface OutputCollector<K,V>
Collects the <key, value> pairs output by Mappers and Reducers.

OutputCollector is the generalization of the facility provided by the Map-Reduce framework to collect data output by either the Mapper or the Reducer i.e. intermediate outputs or the output of the job.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    collect(K key, V value)
    Adds a key/value pair to the output.
  • Method Details

    • collect

      void collect(K key, V value) throws IOException
      Adds a key/value pair to the output.
      Parameters:
      key - the key to collect.
      value - to value to collect.
      Throws:
      IOException