Package org.apache.druid.server.router
Class ConsistentHasher
java.lang.Object
org.apache.druid.server.router.ConsistentHasher
Distributes objects across a set of node keys using consistent hashing.
See https://en.wikipedia.org/wiki/Consistent_hashing
Not thread-safe.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ConsistentHasher
public ConsistentHasher(com.google.common.hash.HashFunction hashFunction)
-
-
Method Details
-
updateKeys
-
findKey
-