public class VLPaCoTrieDistributor<T> extends AbstractObject2LongFunction<T> implements Size64
PaCoTrieDistributor 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 |
|---|---|
LongBigArrayBigList |
offset |
defRetValue| Constructor and Description |
|---|
VLPaCoTrieDistributor(Iterable<? extends T> elements,
long size,
int bucketSize,
TransformationStrategy<? super T> transformationStrategy)
Creates a partial compacted trie using given elements, bucket size and transformation strategy.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object o) |
long |
getLong(Object o) |
long |
numBits() |
int |
size()
Deprecated.
|
long |
size64() |
clear, defaultReturnValue, defaultReturnValue, get, put, put, remove, removeLongpublic LongBigArrayBigList offset
public VLPaCoTrieDistributor(Iterable<? extends T> elements, long size, int bucketSize, TransformationStrategy<? super T> transformationStrategy) throws IOException
elements - the elements among which the trie must be able to rank.bucketSize - the size of a bucket.transformationStrategy - a transformation strategy that must turn the elements in elements into a list of
distinct, lexicographically increasing (in iteration order) bit vectors.IOExceptionpublic long getLong(Object o)
getLong in interface Object2LongFunction<T>public long numBits()
public boolean containsKey(Object o)
containsKey in interface Function<T,Long>