public class Murmur3 extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Murmur3.IncrementalHash32 |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SEED |
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 offset,
int length,
int seed)
Murmur3 128-bit variant.
|
static int |
hash32(byte[] data)
Murmur3 32-bit variant.
|
static int |
hash32(byte[] data,
int length)
Murmur3 32-bit variant.
|
static int |
hash32(byte[] data,
int length,
int seed)
Murmur3 32-bit variant.
|
static int |
hash32(byte[] data,
int offset,
int length,
int seed)
Murmur3 32-bit variant.
|
static int |
hash32(long l0) |
static int |
hash32(long l0,
int seed)
Murmur3 32-bit variant.
|
static int |
hash32(long l0,
long l1) |
static int |
hash32(long l0,
long l1,
int seed)
Murmur3 32-bit variant.
|
static long |
hash64(byte[] data)
Murmur3 64-bit variant.
|
static long |
hash64(byte[] data,
int offset,
int length) |
static long |
hash64(byte[] data,
int offset,
int length,
int seed)
Murmur3 64-bit variant.
|
static long |
hash64(int data) |
static long |
hash64(long data) |
static long |
hash64(short data) |
public static final long NULL_HASHCODE
public static final int DEFAULT_SEED
public static int hash32(long l0, long l1)
public static int hash32(long l0)
public static int hash32(long l0, int seed)
public static int hash32(long l0, long l1, int seed)
public static int hash32(byte[] data)
data
- - input byte arraypublic static int hash32(byte[] data, int length)
data
- - input byte arraylength
- - length of arraypublic static int hash32(byte[] data, int length, int seed)
data
- - input byte arraylength
- - length of arrayseed
- - seed. (default 0)public static int hash32(byte[] data, int offset, int length, int seed)
data
- - input byte arrayoffset
- - offset of datalength
- - length of arrayseed
- - seed. (default 0)public static long hash64(byte[] data)
data
- - input byte arraypublic static long hash64(long data)
public static long hash64(int data)
public static long hash64(short data)
public static long hash64(byte[] data, int offset, int length)
public static long hash64(byte[] data, int offset, 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 offset, int length, int seed)
data
- - input byte arrayoffset
- - the first element of arraylength
- - length of arrayseed
- - seed. (default is 0)Copyright © 2021 The Apache Software Foundation. All rights reserved.