public class MurmurHash3
extends java.lang.Object
The current version is MurmurHash3, which yields a 32-bit or 128-bit hash value. When using 128-bits, the x86 and x64 versions do not produce the same values, as the algorithms are optimized for their respective platforms.
This class is adapted from Apache Cassandra.
| Constructor and Description |
|---|
MurmurHash3() |
| Modifier and Type | Method and Description |
|---|---|
static void |
hash128(java.nio.ByteBuffer key,
int offset,
int length,
long seed,
long[] result)
128-bit MurmurHash3 for x64.
|
static int |
hash32(byte[] data,
int offset,
int len,
int seed)
32-bit MurmurHash3.
|
public static int hash32(byte[] data,
int offset,
int len,
int seed)
public static void hash128(java.nio.ByteBuffer key,
int offset,
int length,
long seed,
long[] result)