|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.contrib.index.mapred.IndexUpdatePartitioner
public class IndexUpdatePartitioner
This partitioner class puts the values of the same key - in this case the same shard - in the same partition.
| Constructor Summary | |
|---|---|
IndexUpdatePartitioner()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexUpdatePartitioner()
| Method Detail |
|---|
public int getPartition(Shard key,
IntermediateForm value,
int numPartitions)
PartitionerTypically a hash function on a all or a subset of the key.
getPartition in interface 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 in interface JobConfigurablejob - the configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||