|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapred.lib.HashPartitioner<K2,V2>
HashPartitioner instead.
@Deprecated public class HashPartitioner<K2,V2>
Partition keys by their Object.hashCode().
| Constructor Summary | |
|---|---|
HashPartitioner()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
configure(JobConf job)
Deprecated. Initializes a new instance from a JobConf. |
int |
getPartition(K2 key,
V2 value,
int numReduceTasks)
Deprecated. Use Object.hashCode() to partition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HashPartitioner()
| Method Detail |
|---|
public void configure(JobConf job)
JobConfigurableJobConf.
configure in interface JobConfigurablejob - the configuration
public int getPartition(K2 key,
V2 value,
int numReduceTasks)
Object.hashCode() to partition.
getPartition in interface Partitioner<K2,V2>key - the key to be paritioned.value - the entry value.numReduceTasks - the total number of partitions.
key.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||