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 Type
    Method
    Description
    long
    compute the hash value for a ByteBuffer.
    long
    hashBytes(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

      long hashByteBuffer(ByteBuffer input)
      compute the hash value for a ByteBuffer.
      Parameters:
      input - the input ByteBuffer
      Returns:
      a result of long value.