public class HollowTrieMonotoneMinimalPerfectHashFunction<T> extends AbstractHashFunction<T> implements Serializable, Size64
Instances of this class can be used to compute a monotone minimal perfect hashing of the keys.
| Modifier and Type | Field and Description |
|---|---|
protected JacobsonBalancedParentheses |
balParen
A balanced parentheses structure over
trie. |
protected EliasFanoLongBigList |
skips |
protected LongArrayBitVector |
trie
The bit vector containing Jacobson's representation of the trie.
|
defRetValue| Constructor and Description |
|---|
HollowTrieMonotoneMinimalPerfectHashFunction(Iterable<? extends T> iterable,
TransformationStrategy<? super T> transform) |
HollowTrieMonotoneMinimalPerfectHashFunction(Iterator<? extends T> iterator,
TransformationStrategy<? super T> transform) |
| Modifier and Type | Method and Description |
|---|---|
long |
getLong(Object object) |
static void |
main(String[] arg) |
long |
numBits() |
long |
size64() |
containsKey, sizeclear, defaultReturnValue, defaultReturnValue, get, put, put, remove, removeLongprotected EliasFanoLongBigList skips
protected final LongArrayBitVector trie
protected JacobsonBalancedParentheses balParen
trie.public HollowTrieMonotoneMinimalPerfectHashFunction(Iterable<? extends T> iterable, TransformationStrategy<? super T> transform)
public HollowTrieMonotoneMinimalPerfectHashFunction(Iterator<? extends T> iterator, TransformationStrategy<? super T> transform)
public long getLong(Object object)
getLong in interface Object2LongFunction<T>public long size64()
size64 in interface Size64size64 in class AbstractHashFunction<T>public long numBits()
public static void main(String[] arg) throws NoSuchMethodException, IOException, JSAPException