public class Murmur1 extends Object implements MurmurConstants
LONG_MASK, UINT_MASK, UNSIGNED_MASK| Constructor and Description |
|---|
Murmur1() |
| Modifier and Type | Method and Description |
|---|---|
static long |
hash(byte[] data,
int length,
long seed)
Compute the Murmur1 hash as described in the original source code.
|
static long |
hashAligned(byte[] data,
int length,
long seed)
Compute the Murmur1 hash (aligned 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 hashAligned(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.