Package io.atomix.primitive.partition
Class Murmur3Partitioner
java.lang.Object
io.atomix.primitive.partition.Murmur3Partitioner
- All Implemented Interfaces:
Partitioner<String>
public class Murmur3Partitioner extends Object implements Partitioner<String>
Murmur 3 partitioner.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Murmur3Partitioner() -
Method Summary
Modifier and Type Method Description PartitionIdpartition(String key, List<PartitionId> partitions)Returns the partition ID to which the specified object maps.
-
Constructor Details
-
Murmur3Partitioner
public Murmur3Partitioner()
-
-
Method Details
-
partition
Description copied from interface:PartitionerReturns the partition ID to which the specified object maps.- Specified by:
partitionin interfacePartitioner<String>- Parameters:
key- the key to partitionpartitions- the list of partitions- Returns:
- partition identifier
-