Package org.apache.hadoop.util.hash
Class MurmurHash
java.lang.Object
org.apache.hadoop.util.hash.Hash
org.apache.hadoop.util.hash.MurmurHash
This is a very fast, non-cryptographic hash suitable for general hash-based
lookup. See http://murmurhash.googlepages.com/ for more details.
The C version of MurmurHash 2.0 found at that site was ported to Java by Andrzej Bialecki (ab at getopt org).
-
Field Summary
Fields inherited from class org.apache.hadoop.util.hash.Hash
INVALID_HASH, JENKINS_HASH, MURMUR_HASH -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.hadoop.util.hash.Hash
getHashType, getInstance, getInstance, hash, hash, parseHashType
-
Constructor Details
-
MurmurHash
public MurmurHash()
-
-
Method Details
-
getInstance
-
hash
public int hash(byte[] data, int length, int seed) Description copied from class:HashCalculate a hash using bytes from 0 tolength, and the provided seed value -
hash
public int hash(byte[] data, int offset, int length, int seed)
-