Class EliasFanoMonotoneBigLongBigList.EliasFanoMonotoneLongBigListIterator

java.lang.Object
it.unimi.dsi.sux4j.util.EliasFanoMonotoneBigLongBigList.EliasFanoMonotoneLongBigListIterator
All Implemented Interfaces:
BidirectionalIterator<Long>, BigListIterator<Long>, LongBidirectionalIterator, LongBigListIterator, LongIterator, ObjectBidirectionalIterator<Long>, ObjectIterator<Long>, Iterator<Long>, PrimitiveIterator<Long,LongConsumer>, PrimitiveIterator.OfLong
Enclosing class:
EliasFanoMonotoneBigLongBigList

public class EliasFanoMonotoneBigLongBigList.EliasFanoMonotoneLongBigListIterator extends Object implements LongBigListIterator
A list iterator over the values of this EliasFanoMonotoneBigLongBigList.

Forward iteration will be faster than iterated calls to getLong(). Backward iteration is available, but it will perform similarly to getLong().

Additional unsafe methods nextLongUnsafe() and previousLongUnsafe() iterate without checking for the existence of a next element.

  • Field Details

    • index

      protected long index
      The index of the next element to return.
    • word

      protected long word
      The current word in the array of upper bits.
    • window

      protected long window
      The current window.
    • lowerBitsPosition

      protected long lowerBitsPosition
      The current position in the array of lower bits.
  • Constructor Details

    • EliasFanoMonotoneLongBigListIterator

      protected EliasFanoMonotoneLongBigListIterator(long from)
  • Method Details