public class PaCoTrieDistributorMonotoneMinimalPerfectHashFunction<T> extends AbstractHashFunction<T> implements Size64, Serializable
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
defRetValue| Constructor and Description |
|---|
PaCoTrieDistributorMonotoneMinimalPerfectHashFunction(Iterable<? extends T> elements,
TransformationStrategy<? super T> transform)
Creates a new PaCo-trie-based monotone minimal perfect hash function using the given
elements and transformation strategy.
|
| 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 PaCoTrieDistributorMonotoneMinimalPerfectHashFunction(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 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