public class HashPartitioner<K2,V2> extends java.lang.Object implements Partitioner<K2,V2>
Object.hashCode().| Constructor and Description |
|---|
HashPartitioner() |
public void configure(JobConf job)
JobConfigurableJobConf.configure in interface JobConfigurablejob - the configurationpublic 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.Copyright © 2009 The Apache Software Foundation