Package org.apache.druid.server.router
Class ConsistentHasher
- java.lang.Object
-
- org.apache.druid.server.router.ConsistentHasher
-
public class ConsistentHasher extends Object
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 Constructor Description ConsistentHasher(com.google.common.hash.HashFunction hashFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringfindKey(byte[] obj)voidupdateKeys(Set<String> currentKeys)
-