I understand that for including a combiner in Hadoop MapReduce the following line is included (which I have done already);
conf.setCombinerClass(MyReducer.class);
What I don't understand is that where do I actually implement the functionality of the combiner. Do I create a combine{} method under MyReducer? such as the reduce method;
public void reduce(Text key, Iterator<IntWritable> values,
OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException { }
Many thanks in advance!