Package com.linkedin.alpini.base.hash
Class FnvHashFunction
java.lang.Object
com.linkedin.alpini.base.hash.FnvHashFunction
- All Implemented Interfaces:
HashFunction
Forked from com.linkedin.databus.core.util @ r293057
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
hash
(byte[] key) long
hash
(byte[] key, int numBuckets) long
hash
(long val, int numBuckets) long
hash
(ByteBuffer buf) long
hash
(ByteBuffer buf, int off, int len)
-
Constructor Details
-
FnvHashFunction
public FnvHashFunction()
-
-
Method Details
-
hash
- Specified by:
hash
in interfaceHashFunction
-
hash
- Specified by:
hash
in interfaceHashFunction
-
hash
public long hash(@Nonnull byte[] key) -
hash
public long hash(@Nonnull byte[] key, int numBuckets) - Specified by:
hash
in interfaceHashFunction
-
hash
public long hash(long val, int numBuckets) - Specified by:
hash
in interfaceHashFunction
-