public class VLPaCoTrieDistributorMonotoneMinimalPerfectHashFunction<T> extends AbstractHashFunction<T> implements Serializable, Size64
PaCoTrieDistributorMonotoneMinimalPerfectHashFunction whose space usage depends on the average
string length, rather than on the maximum string length; mainly of theoretical interest.| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
defRetValue| Constructor and Description |
|---|
VLPaCoTrieDistributorMonotoneMinimalPerfectHashFunction(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 VLPaCoTrieDistributorMonotoneMinimalPerfectHashFunction(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