public final class MurmurHash
extends java.lang.Object
Constructor and Description |
---|
MurmurHash() |
Modifier and Type | Method and Description |
---|---|
static int |
hash32(int[] data,
int startPos,
int endPos) |
static int |
hash32(int[] data,
int startPos,
int endPos,
int seed)
Generates 32 bit hash from byte array of the given length and seed.
|
static long |
hashOneLong(long k_,
int seed) |
static long |
hashThreeLongs(long k1,
long k2,
long k3) |
public static int hash32(int[] data, int startPos, int endPos, int seed)
data
- int array to hashlength
- length of the array to hashseed
- initial seed valuepublic static int hash32(int[] data, int startPos, int endPos)
public static long hashOneLong(long k_, int seed)
public static long hashThreeLongs(long k1, long k2, long k3)