|
Joshua
open source statistical hierarchical phrase-based machine translation system
|
Static Public Member Functions | |
| static int | hash32 (final byte[] data, int length, int seed) |
| static int | hash32 (final byte[] data, int length) |
| static int | hash32 (final String text) throws UnsupportedEncodingException |
| static int | hash32 (final String text, int from, int length) throws UnsupportedEncodingException |
| static long | hash64 (final byte[] data, int length, int seed) |
| static long | hash64 (final byte[] data, int length) |
| static long | hash64 (final String text) throws UnsupportedEncodingException |
| static long | hash64 (final String text, int from, int length) throws UnsupportedEncodingException |
Static Private Attributes | |
| static final String | ENCODING = "UTF-16" |
MurmurHash 2.0.
The murmur hash is a relative fast hash function from http://murmurhash.googlepages.com/ for platforms with efficient multiplication.
This is a re-implementation of the original C code plus some additional features.
Public domain.
| static int joshua.util.MurmurHash.hash32 | ( | final byte[] | data, |
| int | length, | ||
| int | seed | ||
| ) | [static] |
Generates 32 bit hash from byte array of the given length and seed.
| data | byte array to hash |
| length | length of the array to hash |
| seed | initial seed value |
| static int joshua.util.MurmurHash.hash32 | ( | final byte[] | data, |
| int | length | ||
| ) | [static] |
Generates 32 bit hash from byte array with default seed value.
| data | byte array to hash |
| length | length of the array to hash |
| static int joshua.util.MurmurHash.hash32 | ( | final String | text | ) | throws UnsupportedEncodingException [static] |
Generates 32 bit hash from a string.
| text | string to hash |
| UnsupportedEncodingException |
| static int joshua.util.MurmurHash.hash32 | ( | final String | text, |
| int | from, | ||
| int | length | ||
| ) | throws UnsupportedEncodingException [static] |
Generates 32 bit hash from a substring.
| text | string to hash |
| from | starting index |
| length | length of the substring to hash |
| UnsupportedEncodingException |
| static long joshua.util.MurmurHash.hash64 | ( | final byte[] | data, |
| int | length, | ||
| int | seed | ||
| ) | [static] |
Generates 64 bit hash from byte array of the given length and seed.
| data | byte array to hash |
| length | length of the array to hash |
| seed | initial seed value |
| static long joshua.util.MurmurHash.hash64 | ( | final byte[] | data, |
| int | length | ||
| ) | [static] |
Generates 64 bit hash from byte array with default seed value.
| data | byte array to hash |
| length | length of the array to hash |
| static long joshua.util.MurmurHash.hash64 | ( | final String | text | ) | throws UnsupportedEncodingException [static] |
Generates 64 bit hash from a string.
| text | string to hash |
| UnsupportedEncodingException |
| static long joshua.util.MurmurHash.hash64 | ( | final String | text, |
| int | from, | ||
| int | length | ||
| ) | throws UnsupportedEncodingException [static] |
Generates 64 bit hash from a substring.
| text | string to hash |
| from | starting index |
| length | length of the substring to hash |
| UnsupportedEncodingException |
final String joshua.util.MurmurHash.ENCODING = "UTF-16" [static, private] |