K - object type.@FunctionalInterface public interface Partitioner<K>
| Modifier and Type | Field and Description |
|---|---|
static Partitioner<String> |
MURMUR3
Murmur 3 partitioner.
|
| Modifier and Type | Method and Description |
|---|---|
PartitionId |
partition(K key,
List<PartitionId> partitions)
Returns the partition ID to which the specified object maps.
|
static final Partitioner<String> MURMUR3
PartitionId partition(K key, List<PartitionId> partitions)
key - the key to partitionpartitions - the list of partitionsCopyright © 2013–2018. All rights reserved.