public class HollowTrieDistributorMonotoneMinimalPerfectHashFunction<T> extends AbstractHashFunction<T> implements Size64, Serializable
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
defRetValue| Constructor and Description |
|---|
HollowTrieDistributorMonotoneMinimalPerfectHashFunction(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, using the default temporary directory.
|
HollowTrieDistributorMonotoneMinimalPerfectHashFunction(Iterable<? extends T> elements,
TransformationStrategy<? super T> transform,
File tempDir)
Creates a new hollow-trie-based monotone minimal perfect hash function using the given
elements, transformation strategy, and temporary directory.
|
| 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 HollowTrieDistributorMonotoneMinimalPerfectHashFunction(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 HollowTrieDistributorMonotoneMinimalPerfectHashFunction(Iterable<? extends T> elements, TransformationStrategy<? super T> transform, File tempDir) 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.tempDir - a directory for the temporary files created during construction
by the HollowTrieDistributor, or null for the default temporary directory.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