public final class MurmurHash2
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
hash32(byte[] data,
int length)
Generates 32 bit hash from byte array with default seed value.
|
static int |
hash32(byte[] data,
int length,
int seed)
Generates 32 bit hash from byte array of the given length and seed.
|
static int |
hash32(java.lang.String text)
Generates 32 bit hash from a string.
|
static int |
hash32(java.lang.String text,
int from,
int length)
Generates 32 bit hash from a substring.
|
static long |
hash64(byte[] data,
int length)
Generates 64 bit hash from byte array with default seed value.
|
static long |
hash64(byte[] data,
int length,
int seed)
Generates 64 bit hash from byte array of the given length and seed.
|
static long |
hash64(java.lang.String text)
Generates 64 bit hash from a string.
|
static long |
hash64(java.lang.String text,
int from,
int length)
Generates 64 bit hash from a substring.
|
public static int hash32(byte[] data, int length, int seed)
data
- byte array to hashlength
- length of the array to hashseed
- initial seed valuepublic static int hash32(byte[] data, int length)
data
- byte array to hashlength
- length of the array to hashpublic static int hash32(java.lang.String text)
text
- string to hashpublic static int hash32(java.lang.String text, int from, int length)
text
- string to hashfrom
- starting indexlength
- length of the substring to hashpublic static long hash64(byte[] data, int length, int seed)
data
- byte array to hashlength
- length of the array to hashseed
- initial seed valuepublic static long hash64(byte[] data, int length)
data
- byte array to hashlength
- length of the array to hashpublic static long hash64(java.lang.String text)
text
- string to hashpublic static long hash64(java.lang.String text, int from, int length)
text
- string to hashfrom
- starting indexlength
- length of the substring to hash"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"