org.apache.hadoop.examples
Class SecondarySort.FirstPartitioner

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Partitioner<SecondarySort.IntPair,org.apache.hadoop.io.IntWritable>
      extended by 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.


Constructor Summary
SecondarySort.FirstPartitioner()
           
 
Method Summary
 int getPartition(SecondarySort.IntPair key, org.apache.hadoop.io.IntWritable value, int numPartitions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecondarySort.FirstPartitioner

public SecondarySort.FirstPartitioner()
Method Detail

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.