Example usage for org.apache.hadoop.mapreduce Reducer interface-usage

List of usage examples for org.apache.hadoop.mapreduce Reducer interface-usage

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce Reducer interface-usage.

Usage

From source file crunch.MaxTemperature.java

    public class MaxTemperatureReducer extends MapReduceBase implements Reducer<Text, IntWritable, Text, IntWritable> {

        public void reduce(Text key, Iterator<IntWritable> values, OutputCollector<Text, IntWritable> output,
                Reporter reporter) throws IOException {

            int maxValue = Integer.MIN_VALUE;