public class ZFastTrieDistributorMonotoneMinimalPerfectHashFunction<T> extends AbstractHashFunction<T> implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
defRetValue| Constructor and Description |
|---|
ZFastTrieDistributorMonotoneMinimalPerfectHashFunction(Iterable<? extends T> elements,
TransformationStrategy<? super T> transform)
Creates a new hollow-trie-based monotone minimal perfect hash function using the given
elements and transformation strategy.
|
ZFastTrieDistributorMonotoneMinimalPerfectHashFunction(Iterable<? extends T> elements,
TransformationStrategy<? super T> transform,
int log2BucketSize)
Creates a new hollow-trie-based monotone minimal perfect hash function using the given
elements, transformation strategy and bucket size.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLong(Object o) |
static void |
main(String[] arg) |
long |
numBits() |
long |
size64() |
containsKey, sizeclear, defaultReturnValue, defaultReturnValue, get, put, put, remove, removeLongpublic static final long serialVersionUID
public ZFastTrieDistributorMonotoneMinimalPerfectHashFunction(Iterable<? extends T> elements, TransformationStrategy<? super T> transform) throws IOException
elements - the elements among which the trie must be able to rank.transform - a transformation strategy that must turn the elements in elements into a list of
distinct, prefix-free, lexicographically increasing (in iteration order) bit vectors.IOExceptionpublic ZFastTrieDistributorMonotoneMinimalPerfectHashFunction(Iterable<? extends T> elements, TransformationStrategy<? super T> transform, int log2BucketSize) throws IOException
This constructor is mainly for debugging and testing purposes.
elements - the elements among which the trie must be able to rank.transform - a transformation strategy that must turn the elements in elements into a list of
distinct, prefix-free, lexicographically increasing (in iteration order) bit vectors.log2BucketSize - the logarithm of the bucket size.IOExceptionpublic long getLong(Object o)
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