Package io.tarantool.driver.api.cursor
Interface TarantoolCursor<T extends Packable>
-
- All Known Implementing Classes:
OffsetCursor,StartAfterCursor,TarantoolCursorBase
public interface TarantoolCursor<T extends Packable>Basic cursor interface which allows forward-only iteration through query results. Warning: 'TarantoolCursor' cursors are not thread-safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tget()booleannext()Fetch next element.
-
-
-
Method Detail
-
next
boolean next() throws TarantoolClientExceptionFetch next element.- Returns:
- true if element was fetched, false if no elements left.
- Throws:
TarantoolClientException- if the request to server failed.
-
get
T get() throws TarantoolSpaceOperationException
- Returns:
- current element or null if cursor is not initialized
- Throws:
TarantoolSpaceOperationException- when no data is available
-
-