Package com.google.common.hash
Class Murmur3_128HashFunction
java.lang.Object
com.google.common.hash.AbstractHashFunction
com.google.common.hash.Murmur3_128HashFunction
- All Implemented Interfaces:
HashFunction
,Serializable
See MurmurHash3_x64_128 in the
C++ implementation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final HashFunction
(package private) static final HashFunction
private final int
private static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
bits()
Returns the number of bits (a multiple of 32) that each hash code produced by this hash function has.boolean
int
hashCode()
Begins a new hash code computation by returning an initialized, statefulHasher
instance that is ready to receive data.toString()
Methods inherited from class com.google.common.hash.AbstractHashFunction
hashBytes, hashBytes, hashBytes, hashInt, hashLong, hashObject, hashString, hashUnencodedChars, newHasher
-
Field Details
-
MURMUR3_128
-
GOOD_FAST_HASH_128
-
seed
private final int seed -
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
Murmur3_128HashFunction
Murmur3_128HashFunction(int seed)
-
-
Method Details
-
bits
public int bits()Description copied from interface:HashFunction
Returns the number of bits (a multiple of 32) that each hash code produced by this hash function has.- Specified by:
bits
in interfaceHashFunction
-
newHasher
Description copied from interface:HashFunction
Begins a new hash code computation by returning an initialized, statefulHasher
instance that is ready to receive data. Example:HashFunction hf = Hashing.md5(); HashCode hc = hf.newHasher() .putLong(id) .putBoolean(isActive) .hash();
- Specified by:
newHasher
in interfaceHashFunction
-
toString
-
equals
-
hashCode
public int hashCode()
-