Class CompressedRandomWalks.CompressedWalkIterator

  • All Implemented Interfaces:
    java.util.Iterator<long[]>
    Enclosing class:
    CompressedRandomWalks

    public static class CompressedRandomWalks.CompressedWalkIterator
    extends com.carrotsearch.hppc.AbstractIterator<long[]>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected long[] fetch()
      Returns the next random walk in the specified range.
      • Methods inherited from class com.carrotsearch.hppc.AbstractIterator

        done, hasNext, next, remove
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Method Detail

      • fetch

        protected long[] fetch()
        Returns the next random walk in the specified range. The long array returned by this method will be reused in the following call to `next` and must not be shared. If the current walk is shorter than the maximum walk length, the remaining elements will be filled with -1.
        Specified by:
        fetch in class com.carrotsearch.hppc.AbstractIterator<long[]>