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 T
get()
boolean
next()
Fetch next element.
-
-
-
Method Detail
-
next
boolean next() throws TarantoolClientException
Fetch 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
-
-