org.apache.hadoop.examples
Class WordCount.IntSumReducer
java.lang.Object
org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable>
org.apache.hadoop.examples.WordCount.IntSumReducer
- Enclosing class:
- WordCount
public static class WordCount.IntSumReducer
- extends Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable>
Method Summary |
void |
reduce(org.apache.hadoop.io.Text key,
Iterable<org.apache.hadoop.io.IntWritable> values,
Reducer.Context context)
This method is called once for each key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WordCount.IntSumReducer
public WordCount.IntSumReducer()
reduce
public void reduce(org.apache.hadoop.io.Text key,
Iterable<org.apache.hadoop.io.IntWritable> values,
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<org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable>
- Throws:
IOException
InterruptedException
Copyright © 2009 The Apache Software Foundation