org.apache.hadoop.examples
Class SecondarySort.FirstPartitioner
java.lang.Object
org.apache.hadoop.mapreduce.Partitioner<SecondarySort.IntPair,org.apache.hadoop.io.IntWritable>
org.apache.hadoop.examples.SecondarySort.FirstPartitioner
- Enclosing class:
- SecondarySort
public static class SecondarySort.FirstPartitioner
- extends org.apache.hadoop.mapreduce.Partitioner<SecondarySort.IntPair,org.apache.hadoop.io.IntWritable>
Partition based on the first part of the pair.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecondarySort.FirstPartitioner
public SecondarySort.FirstPartitioner()
getPartition
public int getPartition(SecondarySort.IntPair key,
org.apache.hadoop.io.IntWritable value,
int numPartitions)
- Specified by:
getPartition in class org.apache.hadoop.mapreduce.Partitioner<SecondarySort.IntPair,org.apache.hadoop.io.IntWritable>
Copyright © 2014 Apache Software Foundation. All Rights Reserved.