public static class InvertedIndexMapred.InvertedIndexReducer extends org.apache.hadoop.mapred.MapReduceBase implements org.apache.hadoop.mapred.Reducer<InvertedIndex.InvertedIndexKey,InvertedIndex.InvertedIndexValue,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
| Constructor and Description |
|---|
InvertedIndexMapred.InvertedIndexReducer() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.hadoop.mapred.JobConf job) |
void |
reduce(InvertedIndex.InvertedIndexKey key, java.util.Iterator<InvertedIndex.InvertedIndexValue> values, org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> collector, org.apache.hadoop.mapred.Reporter reporter)
The reduce function.
|
public InvertedIndexMapred.InvertedIndexReducer()
public void configure(org.apache.hadoop.mapred.JobConf job)
configure in interface org.apache.hadoop.mapred.JobConfigurableconfigure in class org.apache.hadoop.mapred.MapReduceBasepublic void reduce(InvertedIndex.InvertedIndexKey key, java.util.Iterator<InvertedIndex.InvertedIndexValue> values, org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> collector, org.apache.hadoop.mapred.Reporter reporter) throws java.io.IOException
reduce in interface org.apache.hadoop.mapred.Reducer<InvertedIndex.InvertedIndexKey,InvertedIndex.InvertedIndexValue,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>java.io.IOException