public class Murmur2 extends Object implements MurmurConstants
LONG_MASK, UINT_MASK, UNSIGNED_MASK| Constructor and Description |
|---|
Murmur2() |
| Modifier and Type | Method and Description |
|---|---|
static long |
hash(byte[] data,
int length,
long seed)
Compute the Murmur2 hash as described in the original source code.
|
static long |
hash64(byte[] data,
int length,
long seed)
Compute the Murmur2 hash (64-bit version) as described in the original source code.
|
public static long hash(byte[] data,
int length,
long seed)
data - the data that needs to be hashedlength - the length of the data that needs to be hashedseed - the seed to use to compute the hashpublic static long hash64(byte[] data,
int length,
long seed)
data - the data that needs to be hashedlength - the length of the data that needs to be hashedseed - the seed to use to compute the hashCopyright © 2014. All rights reserved.