public final class MurmurHash2 extends 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(String text)Generates 32 bit hash from a string. | 
| static int | hash32(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(String text)Generates 64 bit hash from a string. | 
| static long | hash64(String text,
      int from,
      int length)Generates 64 bit hash from a substring. | 
public static int hash32(byte[] data,
                         int length)
data - byte array to hashlength - length of the array to hashpublic 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(String text)
text - string to hashpublic static int hash32(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)
data - byte array to hashlength - length of the array 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(String text)
text - string to hashpublic static long hash64(String text, int from, int length)
text - string to hashfrom - starting indexlength - length of the substring to hash