Class Murmur3_32Hash

  • All Implemented Interfaces:
    Hash, org.apache.pulsar.common.util.Hash

    public class Murmur3_32Hash
    extends java.lang.Object
    implements Hash
    • Method Detail

      • getInstance

        public static Hash getInstance()
      • makeHash

        public int makeHash​(java.lang.String s)
        Description copied from interface: Hash
        Generate the hash of a given String
        Specified by:
        makeHash in interface Hash
        Returns:
        The hash of {@param s}, which is non-negative integer.
      • makeHash

        public int makeHash​(byte[] b)
        Specified by:
        makeHash in interface org.apache.pulsar.common.util.Hash