public class MurmurHash extends Hash
The code in class is ported from org.apache.hadoop.util.hash.MurmurHash in Apache Hadoop.
The C version of MurmurHash 2.0 found at that site was ported to Java by Andrzej Bialecki (ab at getopt org).
INVALID_HASH, JENKINS_HASH, MURMUR_HASH| Constructor and Description |
|---|
MurmurHash() |
| Modifier and Type | Method and Description |
|---|---|
static Hash |
getInstance() |
int |
hash(byte[] data,
int length,
int seed)
Calculate a hash using bytes from 0 to
length, and
the provided seed value |
int |
hash(byte[] data,
int offset,
int length,
int seed) |
getInstance, hash, hash, parseHashTypeCopyright © 2024 The Apache Software Foundation. All rights reserved.