public final class MurmurHash3
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static int |
murmurhash3_x86_32(byte[] data,
int offset,
int len,
int seed) |
static int |
murmurhash3_x86_32(java.lang.CharSequence data,
int offset,
int len,
int seed)
This is more than 2x faster than hashing the result of String.getBytes().
|
public static int murmurhash3_x86_32(byte[] data,
int offset,
int len,
int seed)
data - the origin dataoffset - the offset into the data arraylen - the length of the data array to useseed - the murmur hash seedpublic static int murmurhash3_x86_32(java.lang.CharSequence data,
int offset,
int len,
int seed)
data - the origin dataoffset - the offset into the data arraylen - the length of the data array to useseed - the murmur hash seed