Package org.rumbledb.runtime.cursor
Class IteratorLocalCursor<T>
java.lang.Object
org.rumbledb.runtime.cursor.AbstractLocalCursor<T>
org.rumbledb.runtime.cursor.IteratorLocalCursor<T>
- Type Parameters:
T- the produced value type
- All Implemented Interfaces:
AutoCloseable,Cursor<T>
Cursor backed by a fresh Java iterator created for each evaluation.
-
Constructor Summary
ConstructorsConstructorDescriptionIteratorLocalCursor(@NonNull Supplier<? extends Iterator<? extends T>> iteratorFactory, @NonNull ExceptionMetadata metadata) -
Method Summary
Methods inherited from class org.rumbledb.runtime.cursor.AbstractLocalCursor
close, getMetadata, hasNext, invalidState, next
-
Constructor Details
-
IteratorLocalCursor
public IteratorLocalCursor(@NonNull @NonNull Supplier<? extends Iterator<? extends T>> iteratorFactory, @NonNull @NonNull ExceptionMetadata metadata)
-
-
Method Details
-
openLocal
protected void openLocal()- Specified by:
openLocalin classAbstractLocalCursor<T>
-
hasNextLocal
protected boolean hasNextLocal()- Specified by:
hasNextLocalin classAbstractLocalCursor<T>
-
nextLocal
- Specified by:
nextLocalin classAbstractLocalCursor<T>
-
closeLocal
protected void closeLocal()- Specified by:
closeLocalin classAbstractLocalCursor<T>
-