Class MurmurHash


  • final class MurmurHash
    extends java.lang.Object
    Commons implementation methods for MurmurHash* classes in this package.
    • Constructor Summary

      Constructors 
      Constructor Description
      MurmurHash()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static int getLittleEndianInt​(byte[] data, int index)
      Gets the little-endian int from 4 bytes starting at the specified index.
      (package private) static long getLittleEndianLong​(byte[] data, int index)
      Gets the little-endian long from 8 bytes starting at the specified index.
      • Methods inherited from class java.lang.Object

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

      • MurmurHash

        MurmurHash()
    • Method Detail

      • getLittleEndianInt

        static int getLittleEndianInt​(byte[] data,
                                      int index)
        Gets the little-endian int from 4 bytes starting at the specified index.
        Parameters:
        data - The data.
        index - The index.
        Returns:
        The little-endian int.
      • getLittleEndianLong

        static long getLittleEndianLong​(byte[] data,
                                        int index)
        Gets the little-endian long from 8 bytes starting at the specified index.
        Parameters:
        data - The data.
        index - The index.
        Returns:
        The little-endian long.