Package com.linkedin.alpini.base.hash
Class FnvHashFunction
- java.lang.Object
-
- com.linkedin.alpini.base.hash.FnvHashFunction
-
- All Implemented Interfaces:
HashFunction
public final class FnvHashFunction extends java.lang.Object implements HashFunction
Forked from com.linkedin.databus.core.util @ r293057
-
-
Constructor Summary
Constructors Constructor Description FnvHashFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
hash(byte[] key)
long
hash(byte[] key, int numBuckets)
long
hash(long val, int numBuckets)
long
hash(java.nio.ByteBuffer buf)
long
hash(java.nio.ByteBuffer buf, int off, int len)
-
-
-
Method Detail
-
hash
public long hash(@Nonnull java.nio.ByteBuffer buf)
- Specified by:
hash
in interfaceHashFunction
-
hash
public long hash(@Nonnull java.nio.ByteBuffer buf, int off, int len)
- 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
-
-