public static class Partitioners.HashPartitioner
extends java.lang.Object
implements kafka.producer.Partitioner
Partitioner
that implements 'key hash' mechanism which
distributes the load between all available partitions based on hashing
the value of the key.Constructor and Description |
---|
HashPartitioner() |
Modifier and Type | Method and Description |
---|---|
int |
partition(java.lang.Object key,
int numberOfPartitions) |