public class MurmurHash extends java.lang.Object implements Hashing
The C version of MurmurHash 2.0 found at that site was ported to Java by Andrzej Bialecki (ab at getopt org).
MD5, md5Holder, MURMUR_HASH| 构造器和说明 |
|---|
MurmurHash() |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
hash(byte[] key) |
static int |
hash(byte[] data,
int seed)
Hashes bytes in an array.
|
static int |
hash(byte[] data,
int offset,
int length,
int seed)
Hashes bytes in part of an array.
|
static int |
hash(java.nio.ByteBuffer buf,
int seed)
Hashes the bytes in a buffer from the current position to the limit.
|
long |
hash(java.lang.String key) |
static long |
hash64A(byte[] data,
int seed) |
static long |
hash64A(byte[] data,
int offset,
int length,
int seed) |
static long |
hash64A(java.nio.ByteBuffer buf,
int seed) |
public static int hash(byte[] data,
int seed)
data - The bytes to hash.seed - The seed for the hash.public static int hash(byte[] data,
int offset,
int length,
int seed)
data - The data to hash.offset - Where to start munging.length - How many bytes to process.seed - The seed to start with.public static int hash(java.nio.ByteBuffer buf,
int seed)
buf - The bytes to hash.seed - The seed for the hash.public static long hash64A(byte[] data,
int seed)
public static long hash64A(byte[] data,
int offset,
int length,
int seed)
public static long hash64A(java.nio.ByteBuffer buf,
int seed)