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

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

Introduction

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

Usage

From source file crunch.MaxTemperature.java

    public class StationPartitioner implements Partitioner<LongWritable, Text> {

        private NcdcRecordParser parser = new NcdcRecordParser();

        @Override
        public int getPartition(LongWritable key, Text value, int numPartitions) {