Class EliasFanoMonotoneLongBigList16
- All Implemented Interfaces:
it.unimi.dsi.fastutil.BigList<Long>, it.unimi.dsi.fastutil.longs.LongBigList, it.unimi.dsi.fastutil.longs.LongCollection, it.unimi.dsi.fastutil.longs.LongIterable, it.unimi.dsi.fastutil.longs.LongStack, it.unimi.dsi.fastutil.Size64, it.unimi.dsi.fastutil.Stack<Long>, Serializable, Comparable<it.unimi.dsi.fastutil.BigList<? extends Long>>, Iterable<Long>, Collection<Long>
Instances of this class behave like those of EliasFanoMonotoneLongBigList, but they use a
big array of shorts to store the lower bits, thus bypassing the 128Gb limit of a
LongArrayBitVector instance.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.longs.AbstractLongBigList
it.unimi.dsi.fastutil.longs.AbstractLongBigList.LongRandomAccessSubList, it.unimi.dsi.fastutil.longs.AbstractLongBigList.LongSubList -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final longDeprecated.The length of the sequence.protected final short[][]Deprecated.The list of lower bits of each element, stored explicitly.protected final SimpleSelectDeprecated.The select structure used to extract the upper bits. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEliasFanoMonotoneLongBigList16(long[] a, it.unimi.dsi.fastutil.longs.LongIterator iterator) Deprecated.Creates an Elias–Fano representation of the values returned by an iterator, given that the overall number of elements and an upper bound are provided, too.EliasFanoMonotoneLongBigList16(long n, long upperBound, it.unimi.dsi.fastutil.bytes.ByteIterator iterator) Deprecated.Creates an Elias–Fano representation of the values returned by an iterator, given that the overall number of elements and an upper bound are provided, too.EliasFanoMonotoneLongBigList16(long n, long upperBound, it.unimi.dsi.fastutil.ints.IntIterator iterator) Deprecated.Creates an Elias–Fano representation of the values returned by an iterator, given that the overall number of elements and an upper bound are provided, too.EliasFanoMonotoneLongBigList16(long n, long upperBound, it.unimi.dsi.fastutil.longs.LongIterator iterator) Deprecated.Creates an Elias–Fano representation of the values returned by an iterator, given that the overall number of elements and an upper bound are provided, too.EliasFanoMonotoneLongBigList16(long n, long upperBound, it.unimi.dsi.fastutil.shorts.ShortIterator iterator) Deprecated.Creates an Elias–Fano representation of the values returned by an iterator, given that the overall number of elements and an upper bound are provided, too.protectedEliasFanoMonotoneLongBigList16(long length, short[][] lowerBits, SimpleSelect selectUpper) Deprecated.EliasFanoMonotoneLongBigList16(it.unimi.dsi.fastutil.bytes.ByteIterable list) Deprecated.Creates an Elias–Fano representation of the values returned by the given iterable object.EliasFanoMonotoneLongBigList16(it.unimi.dsi.fastutil.ints.IntIterable list) Deprecated.Creates an Elias–Fano representation of the values returned by the given iterable object.EliasFanoMonotoneLongBigList16(it.unimi.dsi.fastutil.longs.LongIterable list) Deprecated.Creates an Elias–Fano representation of the values returned by the given iterable object.EliasFanoMonotoneLongBigList16(it.unimi.dsi.fastutil.shorts.ShortIterable list) Deprecated.Creates an Elias–Fano representation of the values returned by the given iterable object. -
Method Summary
Modifier and TypeMethodDescriptionlong[]get(long index, long[] dest) Deprecated.Extracts a number of consecutive entries into a given array.long[]get(long index, long[] dest, int offset, int length) Deprecated.Extracts a number of consecutive entries into a given array fragment.longgetLong(long index) Deprecated.longnumBits()Deprecated.longsize64()Deprecated.Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongBigList
add, add, add, addAll, addAll, addAll, addAll, addElements, addElements, clear, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, forEach, get, getElements, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, peek, peekLong, pop, popLong, push, push, rem, remove, removeElements, removeLong, set, set, setElements, size, size, subList, top, topLong, toStringMethods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongCollection
add, contains, containsAll, containsAll, forEach, remove, removeAll, removeAll, removeIf, retainAll, retainAll, toArray, toLongArray, toLongArrayMethods inherited from class AbstractCollection
isEmpty, toArray, toArrayMethods inherited from interface Collection
containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toArrayMethods inherited from interface it.unimi.dsi.fastutil.longs.LongBigList
addAll, addAll, addAll, addAll, getElements, setElements, setElements, spliteratorMethods inherited from interface it.unimi.dsi.fastutil.longs.LongCollection
add, contains, containsAll, longIterator, longParallelStream, longSpliterator, longStream, parallelStream, remove, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toLongArray, toLongArrayMethods inherited from interface it.unimi.dsi.fastutil.longs.LongIterable
forEach, forEachMethods inherited from interface it.unimi.dsi.fastutil.Stack
isEmpty
-
Field Details
-
length
protected final long lengthDeprecated.The length of the sequence. -
lowerBits
protected final short[][] lowerBitsDeprecated.The list of lower bits of each element, stored explicitly. -
selectUpper
Deprecated.The select structure used to extract the upper bits.
-
-
Constructor Details
-
EliasFanoMonotoneLongBigList16
protected EliasFanoMonotoneLongBigList16(long length, short[][] lowerBits, SimpleSelect selectUpper) Deprecated. -
EliasFanoMonotoneLongBigList16
public EliasFanoMonotoneLongBigList16(it.unimi.dsi.fastutil.ints.IntIterable list) Deprecated.Creates an Elias–Fano representation of the values returned by the given iterable object.- Parameters:
list- an iterable object.
-
EliasFanoMonotoneLongBigList16
public EliasFanoMonotoneLongBigList16(it.unimi.dsi.fastutil.shorts.ShortIterable list) Deprecated.Creates an Elias–Fano representation of the values returned by the given iterable object.- Parameters:
list- an iterable object.
-
EliasFanoMonotoneLongBigList16
public EliasFanoMonotoneLongBigList16(it.unimi.dsi.fastutil.bytes.ByteIterable list) Deprecated.Creates an Elias–Fano representation of the values returned by the given iterable object.- Parameters:
list- an iterable object.
-
EliasFanoMonotoneLongBigList16
public EliasFanoMonotoneLongBigList16(it.unimi.dsi.fastutil.longs.LongIterable list) Deprecated.Creates an Elias–Fano representation of the values returned by the given iterable object.- Parameters:
list- an iterable object.
-
EliasFanoMonotoneLongBigList16
public EliasFanoMonotoneLongBigList16(long n, long upperBound, it.unimi.dsi.fastutil.bytes.ByteIterator iterator) Deprecated.Creates an Elias–Fano representation of the values returned by an iterator, given that the overall number of elements and an upper bound are provided, too.This constructor is particularly useful if the elements of the iterator are provided by some sequential source.
- Parameters:
n- the number of elements returned byiterator.upperBound- an upper bound to the values returned byiterator(note that it used to be a strict upper bound).iterator- an iterator returning nondecreasing elements.
-
EliasFanoMonotoneLongBigList16
public EliasFanoMonotoneLongBigList16(long n, long upperBound, it.unimi.dsi.fastutil.shorts.ShortIterator iterator) Deprecated.Creates an Elias–Fano representation of the values returned by an iterator, given that the overall number of elements and an upper bound are provided, too.This constructor is particularly useful if the elements of the iterator are provided by some sequential source.
- Parameters:
n- the number of elements returned byiterator.upperBound- an upper bound to the values returned byiterator(note that it used to be a strict upper bound).iterator- an iterator returning nondecreasing elements.
-
EliasFanoMonotoneLongBigList16
public EliasFanoMonotoneLongBigList16(long n, long upperBound, it.unimi.dsi.fastutil.ints.IntIterator iterator) Deprecated.Creates an Elias–Fano representation of the values returned by an iterator, given that the overall number of elements and an upper bound are provided, too.This constructor is particularly useful if the elements of the iterator are provided by some sequential source.
- Parameters:
n- the number of elements returned byiterator.upperBound- an upper bound to the values returned byiterator(note that it used to be a strict upper bound).iterator- an iterator returning nondecreasing elements.
-
EliasFanoMonotoneLongBigList16
public EliasFanoMonotoneLongBigList16(long n, long upperBound, it.unimi.dsi.fastutil.longs.LongIterator iterator) Deprecated.Creates an Elias–Fano representation of the values returned by an iterator, given that the overall number of elements and an upper bound are provided, too.This constructor is particularly useful if the elements of the iterator are provided by some sequential source.
- Parameters:
n- the number of elements returned byiterator.upperBound- an upper bound to the values returned byiterator(note that it used to be a strict upper bound).iterator- an iterator returning nondecreasing elements.
-
EliasFanoMonotoneLongBigList16
protected EliasFanoMonotoneLongBigList16(long[] a, it.unimi.dsi.fastutil.longs.LongIterator iterator) Deprecated.Creates an Elias–Fano representation of the values returned by an iterator, given that the overall number of elements and an upper bound are provided, too.This constructor is used only internally, to work around the usual problems caused by the obligation to call
this()before anything else.- Parameters:
a- an array containing the number of elements returned byiteratorand a (strict) upper bound to the values returned byiterator.iterator- an iterator returning nondecreasing elements.
-
-
Method Details
-
numBits
public long numBits()Deprecated. -
getLong
public long getLong(long index) Deprecated.- Specified by:
getLongin interfaceit.unimi.dsi.fastutil.longs.LongBigList
-
get
public long[] get(long index, long[] dest, int offset, int length) Deprecated.Extracts a number of consecutive entries into a given array fragment.- Parameters:
index- the index of the first entry returned.dest- the destination array; it will be filled withlengthconsecutive entries starting at positionoffset.offset- the first position written indest.length- the number of elements written indeststarting atoffset.- Returns:
dest- See Also:
-
get
public long[] get(long index, long[] dest) Deprecated.Extracts a number of consecutive entries into a given array.- Parameters:
index- the index of the first entry returned.dest- the destination array; it will be filled with consecutive entries.- Returns:
dest- See Also:
-
size64
public long size64()Deprecated.- Specified by:
size64in interfaceit.unimi.dsi.fastutil.Size64
-
EliasFanoMonotoneBigLongBigList