Class Murmur3_32Hash

java.lang.Object
org.apache.pulsar.common.util.Murmur3_32Hash
All Implemented Interfaces:
Hash

public class Murmur3_32Hash extends Object implements Hash
Implementation of the MurmurHash3 non-cryptographic hash function.
  • Method Details

    • getInstance

      public static Hash getInstance()
    • makeHash

      public int makeHash(byte[] b)
      Description copied from interface: Hash
      Generate the hash of a given byte array.
      Specified by:
      makeHash in interface Hash
      Returns:
      The hash of b, which is non-negative integer.