@InterfaceAudience.Public @InterfaceStability.Evolving public class HashPartitioner extends Object implements Partitioner
Partitioner
that does hash based partitioningConstructor and Description |
---|
HashPartitioner() |
public int getPartition(Object key, Object value, int numPartitions)
Partitioner
getPartition
in interface Partitioner
key
- keyvalue
- valuenumPartitions
- number of partitionsCopyright © 2016 Apache Software Foundation. All rights reserved.