IntSumReducer (Apache Hadoop Main 3.5.0 API)
Description: declaration: package: org.apache.hadoop.mapreduce.lib.reduce, class: IntSumReducer

Package org.apache.hadoop.mapreduce.lib.reduce

# Class IntSumReducer<Key>

java.lang.Object
org.apache.hadoop.mapreduce.Reducer<Key,IntWritable,Key,IntWritable>
org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer<Key>

@Public @Stable public class IntSumReducer<Key> extends Reducer<Key,IntWritable,Key,IntWritable>

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer

  `org.apache.hadoop.mapreduce.Reducer.Context`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `IntSumReducer()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `reduce(Key key, Iterable<IntWritable> values, Reducer<Key,IntWritable,Key,IntWritable>.org.apache.hadoop.mapreduce.Reducer.Context context)`
  This method is called once for each key.

  ### Methods inherited from class org.apache.hadoop.mapreduce.Reducer

  `cleanup, run, setup`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### IntSumReducer

    public IntSumReducer()

- ## Method Details

  - ### reduce

    public void reduce(Key key, Iterable<IntWritable> values, Reducer<Key,IntWritable,Key,IntWritable>.org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException, InterruptedException
    Description copied from class: `Reducer`
    This method is called once for each key. Most applications will define their reduce class by overriding this method. The default implementation is an identity function.
    Overrides:
      `reduce` in class `Reducer<Key,IntWritable,Key,IntWritable>`
    Throws:
      `IOException`
      `InterruptedException`