Interface HashFunction
-
- All Known Implementing Classes:
XxHash
public interface HashFunctionA interface contains a set of hash functions used by Bloom filter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longhashByteBuffer(ByteBuffer input)compute the hash value for a ByteBuffer.longhashBytes(byte[] input)compute the hash value for a byte array.
-
-
-
Method Detail
-
hashBytes
long hashBytes(byte[] input)
compute the hash value for a byte array.- Parameters:
input- the input byte array- Returns:
- a result of long value.
-
hashByteBuffer
long hashByteBuffer(ByteBuffer input)
compute the hash value for a ByteBuffer.- Parameters:
input- the input ByteBuffer- Returns:
- a result of long value.
-
-