|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.Partitioner<SecondarySort.IntPair,IntWritable>
org.apache.hadoop.examples.SecondarySort.FirstPartitioner
public static class SecondarySort.FirstPartitioner
Partition based on the first part of the pair.
| Constructor Summary | |
|---|---|
SecondarySort.FirstPartitioner()
|
|
| Method Summary | |
|---|---|
int |
getPartition(SecondarySort.IntPair key,
IntWritable value,
int numPartitions)
Get the partition number for a given key (hence record) given the total number of partitions i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecondarySort.FirstPartitioner()
| Method Detail |
|---|
public int getPartition(SecondarySort.IntPair key,
IntWritable value,
int numPartitions)
PartitionerTypically a hash function on a all or a subset of the key.
getPartition in class Partitioner<SecondarySort.IntPair,IntWritable>key - the key to be partioned.value - the entry value.numPartitions - the total number of partitions.
key.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||