public static class WordIndex.Reduce extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>
| Constructor and Description |
|---|
WordIndex.Reduce() |
public WordIndex.Reduce()
protected void setup(org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException, InterruptedException
setup in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>IOExceptionInterruptedExceptionpublic void reduce(org.apache.hadoop.io.Text word, Iterable<org.apache.hadoop.io.LongWritable> counts, org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException, InterruptedException
reduce in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>IOExceptionInterruptedException