Package it.unimi.dsi.big.webgraph
Interface LazyLongSkippableIterator
-
- All Superinterfaces:
LazyLongIterator
- All Known Implementing Classes:
EFGraph.EliasFanoSuccessorReader
public interface LazyLongSkippableIterator extends LazyLongIterator
A skippable lazy iterator over longs.An instance of this class represent an iterator over longs that returns elements in increasing order. The iterator makes it possible to skip elements by value.
-
-
Field Summary
Fields Modifier and Type Field Description static long
END_OF_LIST
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
skipTo(long lowerBound)
Skips to a given element.-
Methods inherited from interface it.unimi.dsi.big.webgraph.LazyLongIterator
nextLong, skip
-
-
-
-
Field Detail
-
END_OF_LIST
static final long END_OF_LIST
- See Also:
- Constant Field Values
-
-
Method Detail
-
skipTo
long skipTo(long lowerBound)
Skips to a given element.Note that this interface is fragile: after
END_OF_LIST
has been returned, the behavour of further calls to this method will be unpredictable.- Parameters:
lowerBound
- a lower bound to the returned element.- Returns:
- if the last returned element is greater than or equal to
lowerBound
, the last returned element; otherwise, the smallest element greater than or equal tolowerBound
that would be returned by this iterator, orEND_OF_LIST
if no such element exists.
-
-