Constructor EliasFanoEncoder
EliasFanoEncoder(Int64, Int64, Int64)
Construct an Elias-Fano encoder.
After construction, call EncodeNext(Int64) numValues
times to encode
a non decreasing sequence of non negative numbers.
Declaration
public EliasFanoEncoder(long numValues, long upperBound, long indexInterval)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | numValues | The number of values that is to be encoded. |
System.Int64 | upperBound | At least the highest value that will be encoded. For space efficiency this should not exceed the power of two that equals or is the first higher than the actual maximum. When |
System.Int64 | indexInterval | The number of high zero bits for which a single index entry is built.
The index will have at most |
EliasFanoEncoder(Int64, Int64)
Construct an Elias-Fano encoder using DEFAULT_INDEX_INTERVAL.
Declaration
public EliasFanoEncoder(long numValues, long upperBound)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | numValues | |
System.Int64 | upperBound |