Package com.illumon.iris.db.v2.utils
Interface ReadOnlyIndex.Iterator
- All Superinterfaces:
AutoCloseable
,Iterator<Long>
,PrimitiveIterator<Long,LongConsumer>
,PrimitiveIterator.OfLong
,SafeCloseable
- All Known Subinterfaces:
ReadOnlyIndex.SearchIterator
- Enclosing interface:
- ReadOnlyIndex
public static interface ReadOnlyIndex.Iterator extends PrimitiveIterator.OfLong, SafeCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong
-
Method Summary
Modifier and Type Method Description void
close()
default boolean
forEachLong(LongAbortableConsumer lc)
Starting from the current next iterator position, provide each value to the consumer, until either the iterator is exhausted or a call to lc.accept returns false; ie, if the consumer returns false for a value, stops after that value (does not provide any values after that).Methods inherited from interface java.util.PrimitiveIterator.OfLong
forEachRemaining, forEachRemaining, next, nextLong
-
Method Details
-
forEachLong
Starting from the current next iterator position, provide each value to the consumer, until either the iterator is exhausted or a call to lc.accept returns false; ie, if the consumer returns false for a value, stops after that value (does not provide any values after that).- Parameters:
lc
- the consumer.- Returns:
- false if the consumer ever returned false, true otherwise.
-
close
void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSafeCloseable
-