public class HashPartitioner<K,V> extends Partitioner<K,V>
Object.hashCode().public int getPartition(K key, V value, int numReduceTasks)
Object.hashCode() to partition.getPartition 在类中 Partitioner<K,V>key - the key to be partioned.value - the entry value.numReduceTasks - the total number of partitions.key.Copyright © 2009 The Apache Software Foundation