Class Murmur3

  • All Implemented Interfaces:
    Serializable

    public final class Murmur3
    extends Object
    implements Serializable
    Provides an implementation of the Murmur3_32 hash algorithm that has desirable properties in terms of randomness and uniformity of the distribution of output values that make it a useful hashing algorithm for downsampling.
    See Also:
    Serialized Form
    • Constructor Detail

      • Murmur3

        public Murmur3​(int seed)
        Constructs a Murmur3 hash with the given seed.
    • Method Detail

      • hashUnencodedChars

        public int hashUnencodedChars​(CharSequence input)
        Hashes a character stream to an int using Murmur3.