public class EliasFanoPrefixSumLongBigList extends EliasFanoMonotoneLongBigList
Instances of this class store in compacted form a list of longs. Values are provided either through an iterable object. As an additional service, this list provides access to the prefix sums of its values.
Instances of this class are essentially a view over an instance of EliasFanoMonotoneLongBigList
storing the prefix sums. The getLong(long) method has been optimised so to avoid two calls
to the getLong(long) method of the EliasFanoMonotoneLongBigList.
AbstractLongBigList.LongSubListl, length, lowerBits, selectUpper| Constructor and Description |
|---|
EliasFanoPrefixSumLongBigList(ByteIterable elements)
Creates a new Elias–Fano prefix-sum long big list.
|
EliasFanoPrefixSumLongBigList(IntIterable elements)
Creates a new Elias–Fano prefix-sum long big list.
|
EliasFanoPrefixSumLongBigList(LongIterable elements)
Creates a new Elias–Fano prefix-sum long big list.
|
EliasFanoPrefixSumLongBigList(ShortIterable elements)
Creates a new Elias–Fano prefix-sum long big list.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLong(long index) |
long |
prefixSum(long index)
Returns the prefix sum of this list up to the given index.
|
long |
size64() |
length, numBitsadd, add, add, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addElements, addElements, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, get, getElements, getLong, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, listIterator, peek, peekLong, pop, popLong, push, push, rem, remove, remove, removeElements, removeLong, removeLong, set, set, set, size, size, size, subList, top, topLong, toStringadd, contains, containsAll, containsAll, isEmpty, longIterator, rem, remove, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toLongArray, toLongArrayclearclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, longIterator, removeAll, retainAll, toArray, toArray, toLongArray, toLongArrayadd, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArraypublic EliasFanoPrefixSumLongBigList(LongIterable elements)
elements - an iterable object.public EliasFanoPrefixSumLongBigList(IntIterable elements)
elements - an iterable object.public EliasFanoPrefixSumLongBigList(ShortIterable elements)
elements - an iterable object.public EliasFanoPrefixSumLongBigList(ByteIterable elements)
elements - an iterable object.public long getLong(long index)
getLong in interface LongBigListgetLong in class EliasFanoMonotoneLongBigListpublic long prefixSum(long index)
index - an index from 0 to the length of this list.index (exclusive).public long size64()
size64 in interface Size64size64 in class EliasFanoMonotoneLongBigList