Class EliasFanoMonotoneLongBigList16

All Implemented Interfaces:
BigList<Long>, LongBigList, LongCollection, LongIterable, LongStack, Size64, Stack<Long>, Serializable, Comparable<BigList<? extends Long>>, Iterable<Long>, Collection<Long>

@Deprecated public class EliasFanoMonotoneLongBigList16 extends AbstractLongBigList implements Serializable
Deprecated.
An implementation of Elias–Fano's representation of monotone sequences with number of lower bits set fixed to 16.

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:
  • Field Details

    • length

      protected final long length
      Deprecated.
      The length of the sequence.
    • lowerBits

      protected final short[][] lowerBits
      Deprecated.
      The list of lower bits of each element, stored explicitly.
    • selectUpper

      protected final SimpleSelect 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(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(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(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(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, 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 by iterator.
      upperBound - an upper bound to the values returned by iterator (note that it used to be a strict upper bound).
      iterator - an iterator returning nondecreasing elements.
    • EliasFanoMonotoneLongBigList16

      public EliasFanoMonotoneLongBigList16(long n, long upperBound, 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 by iterator.
      upperBound - an upper bound to the values returned by iterator (note that it used to be a strict upper bound).
      iterator - an iterator returning nondecreasing elements.
    • EliasFanoMonotoneLongBigList16

      public EliasFanoMonotoneLongBigList16(long n, long upperBound, 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 by iterator.
      upperBound - an upper bound to the values returned by iterator (note that it used to be a strict upper bound).
      iterator - an iterator returning nondecreasing elements.
    • EliasFanoMonotoneLongBigList16

      public EliasFanoMonotoneLongBigList16(long n, long upperBound, 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 by iterator.
      upperBound - an upper bound to the values returned by iterator (note that it used to be a strict upper bound).
      iterator - an iterator returning nondecreasing elements.
    • EliasFanoMonotoneLongBigList16

      protected EliasFanoMonotoneLongBigList16(long[] a, 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 by iterator and a (strict) upper bound to the values returned by iterator.
      iterator - an iterator returning nondecreasing elements.
  • Method Details

    • numBits

      public long numBits()
      Deprecated.
    • getLong

      public long getLong(long index)
      Deprecated.
      Specified by:
      getLong in interface 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 with length consecutive entries starting at position offset.
      offset - the first position written in dest.
      length - the number of elements written in dest starting at offset.
      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:
      size64 in interface Size64