public interface RawCursor<T,EXCEPTION extends Exception> extends Supplier<T>, AutoCloseable
Each position a cursor points to is referred to as a "row".
Access to the current row is done by subtyping this interface and adding accessor methods. If no call to
next() has been done, or if it returned false, then such accessor methods throw IllegalStateException.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Signal that the cursor is no longer needed.
|
default void |
forAll(Consumer<T> consumer) |
boolean |
next()
Move the cursor to the next row.
|
boolean next()
throws EXCEPTION extends Exception
void close()
throws EXCEPTION extends Exception
close in interface AutoCloseableEXCEPTION extends ExceptionCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.