public static class SecondarySort.FirstPartitioner extends Partitioner<SecondarySort.IntPair,IntWritable>
| 构造器和说明 |
|---|
SecondarySort.FirstPartitioner() |
| 限定符和类型 | 方法和说明 |
|---|---|
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. number of reduce-tasks for the job.
|
public int getPartition(SecondarySort.IntPair key, IntWritable value, int numPartitions)
PartitionerTypically a hash function on a all or a subset of the key.
getPartition 在类中 Partitioner<SecondarySort.IntPair,IntWritable>key - the key to be partioned.value - the entry value.numPartitions - the total number of partitions.key.Copyright © 2009 The Apache Software Foundation