Class MurmurHash3


  • final class MurmurHash3
    extends java.lang.Object
    Hash routines for primitive types. The implementation is based on the finalization step from Austin Appleby's MurmurHash3.
    See Also:
    "http://sites.google.com/site/murmurhash/"
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private MurmurHash3()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int hash​(int k)
      Hashes a 4-byte sequence (Java int).
      static long hash​(long k)
      Hashes an 8-byte sequence (Java long).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MurmurHash3

        private MurmurHash3()
    • Method Detail

      • hash

        public static int hash​(int k)
        Hashes a 4-byte sequence (Java int).
      • hash

        public static long hash​(long k)
        Hashes an 8-byte sequence (Java long).