Class AbstractLazyLongIterator

java.lang.Object
it.unimi.dsi.big.webgraph.AbstractLazyLongIterator
All Implemented Interfaces:
LazyLongIterator
Direct Known Subclasses:
BitStreamArcLabelledImmutableGraph.BitStreamLabelledArcIterator, EFGraph.EliasFanoSuccessorReader

public abstract class AbstractLazyLongIterator extends Object implements LazyLongIterator
An abstract implementation of a lazy integer iterator, implementing skip(long) by repeated calls to nextInt().
  • Constructor Details

    • AbstractLazyLongIterator

      public AbstractLazyLongIterator()
  • Method Details

    • skip

      public long skip(long n)
      Description copied from interface: LazyLongIterator
      Skips a given number of elements.
      Specified by:
      skip in interface LazyLongIterator
      Parameters:
      n - the number of elements to skip.
      Returns:
      the number of elements actually skipped (which might be less than n if this iterator is exhausted).