public abstract class Hash
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
JENKINS |
static int |
MURMUR |
static int |
MURMUR3 |
static int |
MURMUR3KM |
Constructor and Description |
---|
Hash() |
Modifier and Type | Method and Description |
---|---|
static Hash |
getInstance(int hashType) |
abstract int[] |
hash(byte[] bytes,
int maxValue,
int nbHash) |
static int |
parseHashType(java.lang.String hashType) |
public static final int MURMUR
public static final int MURMUR3
public static final int MURMUR3KM
public static final int JENKINS
public static int parseHashType(java.lang.String hashType)
public static Hash getInstance(int hashType)
public abstract int[] hash(byte[] bytes, int maxValue, int nbHash)
bytes
- maxValue
- The maximum hashed valuenbHash
- The number of hashed valuesCopyright © 2007-2025 The Apache Software Foundation