Package org.apache.pulsar.common.util
Interface Hash
- All Known Implementing Classes:
Murmur3_32Hash
public interface Hash
This interface declares a hash function.
-
Method Summary
Modifier and TypeMethodDescriptionintmakeHash(byte[] b) Generate the hash of a given byte array.
-
Method Details
-
makeHash
int makeHash(byte[] b) Generate the hash of a given byte array.- Returns:
- The hash of
b, which is non-negative integer.
-