Interface HashFunction

  • All Known Implementing Classes:
    XxHash

    public interface HashFunction
    A interface contains a set of hash functions used by Bloom filter.
    • 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.