cascading.util
Class Murmur3
java.lang.Object
cascading.util.Murmur3
public class Murmur3
- extends Object
Murmur3 is a fast non cryptographic hash algorithm. This class implements the 32bit version of Murmur 3.
The code has been taken from the guava project:
https://github.com/google/guava/blob/v18.0/guava/src/com/google/common/hash/Murmur3_32HashFunction.java
Field Summary |
static int |
SEED
|
Method Summary |
static int |
fmix(int h1,
int length)
|
static int |
hashInt(int input)
Applies murmur3 to the given input. |
static int |
mixH1(int h1,
int k1)
|
static int |
mixK1(int k1)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SEED
public static final int SEED
- See Also:
- Constant Field Values
Murmur3
public Murmur3()
hashInt
public static int hashInt(int input)
- Applies murmur3 to the given input.
- Parameters:
input
- The int to hash.
- Returns:
- a murmur3 hash.
mixK1
public static int mixK1(int k1)
mixH1
public static int mixH1(int h1,
int k1)
fmix
public static int fmix(int h1,
int length)
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.