Class MappedEliasFanoMonotoneLongBigList.MappedEliasFanoMonotoneLongBigListIterator

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

public class MappedEliasFanoMonotoneLongBigList.MappedEliasFanoMonotoneLongBigListIterator extends Object implements LongBigListIterator
A list iterator over the values of this MappedEliasFanoMonotoneLongBigList.

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

    • MappedEliasFanoMonotoneLongBigListIterator

      protected MappedEliasFanoMonotoneLongBigListIterator(long from)
  • Method Details