public class TwoSizesLongBigList extends AbstractLongBigList implements Serializable
Instances of this class store in a compacted form a list of natural numbers. Values are provided either through an iterable object. You will obtain a reduction in size only if the distribution of the values of the list is skewed towards small values.
Instances of this class store elements in two different LongArrayBitVector-based lists—one
for large values and one for small values. The threshold between large and small is established by
measuring at construction time the most proficuous choice. A ranking structure built on a marker array (recording
which elements are stored in the large list) provides access of the correct element in each array.
AbstractLongBigList.LongSubList| Constructor and Description |
|---|
TwoSizesLongBigList(ByteIterable elements)
Builds a new two-sizes long big list using a given iterable object.
|
TwoSizesLongBigList(IntIterable elements)
Builds a new two-sizes long big list using a given iterable object.
|
TwoSizesLongBigList(LongIterable elements)
Builds a new two-sizes long big list using a given iterable object.
|
TwoSizesLongBigList(ShortIterable elements)
Builds a new two-sizes long big list using a given iterable object.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLong(long index) |
long |
length()
Deprecated.
|
long |
numBits() |
long |
size64() |
add, 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 TwoSizesLongBigList(IntIterable elements)
elements - an iterable object.public TwoSizesLongBigList(ShortIterable elements)
elements - an iterable object.public TwoSizesLongBigList(ByteIterable elements)
elements - an iterable object.public TwoSizesLongBigList(LongIterable elements)
elements - an iterable object.public long getLong(long index)
getLong in interface LongBigList@Deprecated public long length()
public long numBits()