Package io.vertx.reactivex.sqlclient
Class Cursor
- java.lang.Object
-
- io.vertx.reactivex.sqlclient.Cursor
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<Cursor>
__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Future<Void>
close()
Release the cursor.boolean
equals(Object o)
Cursor
getDelegate()
int
hashCode()
boolean
hasMore()
Returnstrue
when the cursor has results in progress and theread(int)
should be called to retrieve them.boolean
isClosed()
static Cursor
newInstance(Cursor arg)
Future<RowSet<Row>>
read(int count)
Read rows from the cursor, the result is provided asynchronously to thehandler
.Completable
rxClose()
Release the cursor.Single<RowSet<Row>>
rxRead(int count)
Read rows from the cursor, the result is provided asynchronously to thehandler
.String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<Cursor> __TYPE_ARG
-
-
Method Detail
-
getDelegate
public Cursor getDelegate()
-
read
public Future<RowSet<Row>> read(int count)
Read rows from the cursor, the result is provided asynchronously to thehandler
.- Parameters:
count
- the amount of rows to read- Returns:
- a future notified with the result
-
rxRead
public Single<RowSet<Row>> rxRead(int count)
Read rows from the cursor, the result is provided asynchronously to thehandler
.- Parameters:
count
- the amount of rows to read- Returns:
- a future notified with the result
-
hasMore
public boolean hasMore()
Returnstrue
when the cursor has results in progress and theread(int)
should be called to retrieve them.- Returns:
- whether the cursor has more results,
-
close
public Future<Void> close()
Release the cursor. It should be called for prepared queries executed with a fetch size.- Returns:
-
rxClose
public Completable rxClose()
Release the cursor. It should be called for prepared queries executed with a fetch size.- Returns:
-
isClosed
public boolean isClosed()
- Returns:
- whether the cursor is closed
-
-