@InterfaceAudience.Private @InterfaceStability.Stable public class MurmurHash3 extends Hash
MurmurHash3 is the successor to MurmurHash2. It comes in 3 variants, and the 32-bit version targets low latency for hash table use.
Modifier and Type | Field and Description |
---|---|
private static MurmurHash3 |
_instance |
INVALID_HASH, JENKINS_HASH, MURMUR_HASH, MURMUR_HASH3
Constructor and Description |
---|
MurmurHash3() |
Modifier and Type | Method and Description |
---|---|
static Hash |
getInstance() |
int |
hash(byte[] bytes,
int offset,
int length,
int initval)
Returns the MurmurHash3_x86_32 hash.
|
getHashType, getInstance, getInstance, hash, hash, hash, parseHashType
private static MurmurHash3 _instance
public static Hash getInstance()
public int hash(byte[] bytes, int offset, int length, int initval)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.