public class MurmurHash3 extends Object implements Hash
Constructor and Description |
---|
MurmurHash3() |
Modifier and Type | Method and Description |
---|---|
int |
hash(byte[] payload) |
int |
hash(int hashcode) |
int |
hash(long[] payload)
Hashes a byte array efficiently.
|
int |
hash(Object o) |
long |
hashLong(byte[] payload) |
long |
hashLong(long hashcode) |
long |
hashLong(long[] payload) |
long |
hashLong(Object o) |
static long[] |
MurmurHash3_x64_128(byte[] key,
int seed)
Hash a value using the x64 128 bit variant of MurmurHash3
|
static long[] |
MurmurHash3_x64_128(long[] key,
int seed)
Hash a value using the x64 128 bit variant of MurmurHash3
|
static int |
MurmurHash3_x64_32(byte[] key,
int seed)
Hash a value using the x64 32 bit variant of MurmurHash3
|
static int |
MurmurHash3_x64_32(long[] key,
int seed)
Hash a value using the x64 32 bit variant of MurmurHash3
|
static long |
MurmurHash3_x64_64(byte[] key,
int seed)
Hash a value using the x64 64 bit variant of MurmurHash3
|
static long |
MurmurHash3_x64_64(long[] key,
int seed)
Hash a value using the x64 64 bit variant of MurmurHash3
|
public static long[] MurmurHash3_x64_128(byte[] key, int seed)
key
- value to hashseed
- random valuepublic static long MurmurHash3_x64_64(byte[] key, int seed)
key
- value to hashseed
- random valuepublic static int MurmurHash3_x64_32(byte[] key, int seed)
key
- value to hashseed
- random valuepublic static long[] MurmurHash3_x64_128(long[] key, int seed)
key
- value to hashseed
- random valuepublic static long MurmurHash3_x64_64(long[] key, int seed)
key
- value to hashseed
- random valuepublic static int MurmurHash3_x64_32(long[] key, int seed)
key
- value to hashseed
- random valuepublic int hash(byte[] payload)
public long hashLong(byte[] payload)
public int hash(long[] payload)
payload
- a byte array to hashpublic long hashLong(long[] payload)
public int hash(int hashcode)
public long hashLong(long hashcode)
Copyright © 2013. All rights reserved.