public class MurmurHash$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static MurmurHash$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
MurmurHash$() |
Modifier and Type | Method and Description |
---|---|
<T> int |
arrayHash(java.lang.Object a)
Compute a high-quality hash of an array
|
int |
extendHash(int hash,
int value,
int magicA,
int magicB)
Incorporates a new value into an existing hash.
|
int |
finalizeHash(int hash)
Once all hashes have been incorporated, this performs a final mixing
|
int |
hiddenMagicA() |
int |
hiddenMagicB() |
int |
nextMagicA(int magicA)
Given a magic integer from the first stream, compute the next
|
int |
nextMagicB(int magicB)
Given a magic integer from the second stream, compute the next
|
int |
seedArray() |
int |
startHash(int seed)
Begin a new hash with a seed value.
|
int |
startMagicA()
The initial magic integers in the first stream.
|
int |
startMagicB()
The initial magic integer in the second stream.
|
int |
stringHash(java.lang.String s)
Compute a high-quality hash of a string
|
<T> int |
symmetricHash(scala.collection.TraversableOnce<T> xs,
int seed)
Compute a hash that is symmetric in its arguments--that is,
where the order of appearance of elements does not matter.
|
public static final MurmurHash$ MODULE$
public final int hiddenMagicA()
public final int hiddenMagicB()
public final int seedArray()
public int startHash(int seed)
public int startMagicA()
public int startMagicB()
public int extendHash(int hash, int value, int magicA, int magicB)
hash
- the prior hash valuevalue
- the new value to incorporatemagicA
- a magic integer from the streammagicB
- a magic integer from a different streamhash
- (undocumented)value
- (undocumented)public int nextMagicA(int magicA)
public int nextMagicB(int magicB)
public int finalizeHash(int hash)
public <T> int arrayHash(java.lang.Object a)
public int stringHash(java.lang.String s)
public <T> int symmetricHash(scala.collection.TraversableOnce<T> xs, int seed)
xs
- (undocumented)seed
- (undocumented)