Interface HashFunction
- All Known Implementing Classes:
XxHash
public interface HashFunction
A interface contains a set of hash functions used by Bloom filter.
-
Method Summary
Modifier and TypeMethodDescriptionlonghashByteBuffer(ByteBuffer input) compute the hash value for a ByteBuffer.longhashBytes(byte[] input) compute the hash value for a byte array.
-
Method Details
-
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
compute the hash value for a ByteBuffer.- Parameters:
input- the input ByteBuffer- Returns:
- a result of long value.
-