public static class CountWordsAcrossTimeperiod.NonCombinedTimesReducer extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable>
CountWordsAcrossTimeperiod.Reduce
expects that each timeperiod may appear multiple times (i.e. each
timeperiod was not combined!) reduce output: # Constructor and Description |
---|
NonCombinedTimesReducer()
default construct does nothing
|
Modifier and Type | Method and Description |
---|---|
protected void |
loadOptions(org.apache.hadoop.mapreduce.Reducer.Context context) |
protected void |
reduce(org.apache.hadoop.io.Text word,
Iterable<org.apache.hadoop.io.BytesWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context context) |
protected void |
setup(org.apache.hadoop.mapreduce.Reducer.Context context) |
public NonCombinedTimesReducer()
protected void loadOptions(org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException
IOException
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.BytesWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable>
IOException
InterruptedException
protected void reduce(org.apache.hadoop.io.Text word, Iterable<org.apache.hadoop.io.BytesWritable> values, 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.BytesWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable>
IOException
InterruptedException