Package org.apache.commons.codec.digest
Class MurmurHash
java.lang.Object
org.apache.commons.codec.digest.MurmurHash
Commons implementation methods for MurmurHash* classes in this package.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static intgetLittleEndianInt(byte[] data, int index) Gets the little-endian int from 4 bytes starting at the specified index.(package private) static longgetLittleEndianLong(byte[] data, int index) Gets the little-endian long from 8 bytes starting at the specified index.
-
Constructor Details
-
MurmurHash
MurmurHash()
-
-
Method Details
-
getLittleEndianInt
static int getLittleEndianInt(byte[] data, int index) Gets the little-endian int from 4 bytes starting at the specified index.- Parameters:
data- The dataindex- 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 dataindex- The index- Returns:
- The little-endian long
-