@Public
@Stable
public final class HashFunction
extends java.lang.Object
| Constructor | Description |
|---|---|
HashFunction(int maxValue,
int nbHash,
int hashType) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
Clears this hash function.
|
int[] |
hash(Key k) |
Hashes a specified key into several integers.
|
public HashFunction(int maxValue,
int nbHash,
int hashType)
Builds a hash function that must obey to a given maximum number of returned values and a highest value.
maxValue - The maximum highest returned value.nbHash - The number of resulting hashed values.hashType - type of the hashing function (see Hash).public void clear()
public int[] hash(Key k)
k - The specified key.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.