public class PairEmitCombiner
extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>
Assumes each key is a timeperiod split set of words ordered by single/pair words then by word order.
The key is only used to get time.
Using this time the values are combined and used to construct new keys
Emit for the given time a combined version of the word's count.
The word might be a pair or a unary count.
- Author:
- Sina Samangooei (ss@ecs.soton.ac.uk)