public class Murmur3 extends Object
Modifier and Type | Field and Description |
---|---|
static long |
NULL_HASHCODE |
Constructor and Description |
---|
Murmur3() |
Modifier and Type | Method and Description |
---|---|
static long[] |
hash128(byte[] data)
Murmur3 128-bit variant.
|
static long[] |
hash128(byte[] data,
int length,
int seed)
Murmur3 128-bit variant.
|
static int |
hash32(byte[] data)
Murmur3 32-bit variant.
|
static int |
hash32(byte[] data,
int length,
int seed)
Murmur3 32-bit variant.
|
static long |
hash64(byte[] data)
Murmur3 64-bit variant.
|
static long |
hash64(byte[] data,
int length) |
static long |
hash64(byte[] data,
int length,
int seed)
Murmur3 64-bit variant.
|
public static final long NULL_HASHCODE
public static int hash32(byte[] data)
data
- - input byte arraypublic static int hash32(byte[] data, int length, int seed)
data
- - input byte arraylength
- - length of arrayseed
- - seed. (default 0)public static long hash64(byte[] data)
data
- - input byte arraypublic static long hash64(byte[] data, int length)
public static long hash64(byte[] data, int length, int seed)
data
- - input byte arraylength
- - length of arrayseed
- - seed. (default is 0)public static long[] hash128(byte[] data)
data
- - input byte arraypublic static long[] hash128(byte[] data, int length, int seed)
data
- - input byte arraylength
- - length of arrayseed
- - seed. (default is 0)Copyright © 2017 The Apache Software Foundation. All rights reserved.