public class MurmurHash3
extends java.lang.Object
Constructor | Description |
---|---|
MurmurHash3() |
Modifier and Type | Method | Description |
---|---|---|
static long |
hash(byte[] array) |
Hashes a byte array using MurmurHash3 with seed zero.
|
static long |
hash(byte[] array,
int offset,
int length) |
Hashes a byte-array fragment using MurmurHash3 with seed zero.
|
static long |
hash(byte[] array,
int offset,
int length,
long seed) |
Hashes a byte-array fragment using MurmurHash3.
|
static long |
hash(ByteArrayList list) |
Hashes a
ByteArrayList using MurmurHash3 with seed zero. |
public static final long hash(ByteArrayList list)
ByteArrayList
using MurmurHash3 with seed zero.list
- a byte-array listpublic static final long hash(byte[] array)
array
- a byte array.public static final long hash(byte[] array, int offset, int length)
array
- a byte array.offset
- the first valid byte in array
.length
- the number of valid elements in array
.public static final long hash(byte[] array, int offset, int length, long seed)
array
- a byte array.offset
- the first valid byte in array
.length
- the number of valid elements in array
.seed
- a seed.