public class IndexUpdatePartitioner extends Object implements Partitioner<Shard,IntermediateForm>
| 构造器和说明 |
|---|
IndexUpdatePartitioner() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
configure(JobConf job)
Initializes a new instance from a
JobConf. |
int |
getPartition(Shard key,
IntermediateForm value,
int numPartitions)
Get the paritition 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(Shard key, IntermediateForm value, int numPartitions)
PartitionerTypically a hash function on a all or a subset of the key.
getPartition 在接口中 Partitioner<Shard,IntermediateForm>key - the key to be paritioned.value - the entry value.numPartitions - the total number of partitions.key.public void configure(JobConf job)
JobConfigurableJobConf.configure 在接口中 JobConfigurablejob - the configurationCopyright © 2009 The Apache Software Foundation