public enum DefaultHasher extends java.lang.Enum<DefaultHasher> implements Hasher
| Enum Constant and Description |
|---|
CITY_HASH |
FARM_HASH |
METRO_HASH |
MURMUR_3 |
WY_HASH |
XX_HASH |
| Modifier and Type | Method and Description |
|---|---|
long |
hash(java.lang.String key,
int seed)
Calculate hash of provided key with seed (salt)
|
static DefaultHasher |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DefaultHasher[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultHasher MURMUR_3
public static final DefaultHasher CITY_HASH
public static final DefaultHasher FARM_HASH
public static final DefaultHasher METRO_HASH
public static final DefaultHasher WY_HASH
public static final DefaultHasher XX_HASH
public static DefaultHasher[] values()
for (DefaultHasher c : DefaultHasher.values()) System.out.println(c);
public static DefaultHasher valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null