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 |
---|
Reduce() |
Modifier and Type | Method and Description |
---|---|
void |
reduce(org.apache.hadoop.io.Text word,
Iterable<org.apache.hadoop.io.LongWritable> counts,
org.apache.hadoop.mapreduce.Reducer.Context context) |
protected void |
setup(org.apache.hadoop.mapreduce.Reducer.Context context) |
public 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>
IOException
InterruptedException
public 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>
IOException
InterruptedException