Class EliasFanoMonotoneLongBigList.EliasFanoMonotoneLongBigListIterator

java.lang.Object
it.unimi.dsi.sux4j.util.EliasFanoMonotoneLongBigList.EliasFanoMonotoneLongBigListIterator
All Implemented Interfaces:
BidirectionalIterator<Long>, BigListIterator<Long>, LongBidirectionalIterator, LongBigListIterator, LongIterator, ObjectBidirectionalIterator<Long>, ObjectIterator<Long>, Iterator<Long>, PrimitiveIterator<Long,LongConsumer>, PrimitiveIterator.OfLong
Direct Known Subclasses:
EliasFanoIndexedMonotoneLongBigList.EliasFanoIndexedMonotoneLongBigListIterator, EliasFanoPrefixSumLongBigList.EliasFanoPrefixSumLongBigListIterator
Enclosing class:
EliasFanoMonotoneLongBigList

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

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 int 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