类 Murmur3_32Hash

java.lang.Object
org.apache.pulsar.common.util.Murmur3_32Hash
所有已实现的接口:
Hash

public class Murmur3_32Hash extends Object implements Hash
Implementation of the MurmurHash3 non-cryptographic hash function.
  • 方法详细资料

    • getInstance

      public static Hash getInstance()
    • makeHash

      public int makeHash(byte[] b)
      从接口复制的说明: Hash
      Generate the hash of a given byte array.
      指定者:
      makeHash 在接口中 Hash
      返回:
      The hash of b, which is non-negative integer.