public static class InvertedIndexMapreduce.InvertedIndexReducer extends org.apache.hadoop.mapreduce.Reducer<InvertedIndex.InvertedIndexKey,InvertedIndex.InvertedIndexValue,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
| Constructor and Description |
|---|
InvertedIndexMapreduce.InvertedIndexReducer() |
| Modifier and Type | Method and Description |
|---|---|
void |
reduce(InvertedIndex.InvertedIndexKey key, java.lang.Iterable<InvertedIndex.InvertedIndexValue> values, org.apache.hadoop.mapreduce.Reducer.Context context)
The reduce function.
|
void |
setup(org.apache.hadoop.mapreduce.Reducer.Context context) |
public InvertedIndexMapreduce.InvertedIndexReducer()
public void reduce(InvertedIndex.InvertedIndexKey key, java.lang.Iterable<InvertedIndex.InvertedIndexValue> values, org.apache.hadoop.mapreduce.Reducer.Context context) throws java.io.IOException, java.lang.InterruptedException
reduce in class org.apache.hadoop.mapreduce.Reducer<InvertedIndex.InvertedIndexKey,InvertedIndex.InvertedIndexValue,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>java.io.IOExceptionjava.lang.InterruptedExceptionpublic void setup(org.apache.hadoop.mapreduce.Reducer.Context context)
setup in class org.apache.hadoop.mapreduce.Reducer<InvertedIndex.InvertedIndexKey,InvertedIndex.InvertedIndexValue,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>