Package io.vertx.rxjava3.sqlclient
Class Cursor
- java.lang.Object
-
- io.vertx.rxjava3.sqlclient.Cursor
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<Cursor>__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.reactivex.rxjava3.core.Completableclose()Likeclose()but with acompletionHandlercalled when the cursor has been released.booleanequals(Object o)CursorgetDelegate()inthashCode()booleanhasMore()Returnstruewhen the cursor has results in progress and theread(int)should be called to retrieve them.booleanisClosed()static CursornewInstance(Cursor arg)io.reactivex.rxjava3.core.Single<RowSet<Row>>read(int count)Read rows from the cursor, the result is provided asynchronously to thehandler.io.reactivex.rxjava3.core.CompletablerxClose()Likeclose()but with acompletionHandlercalled when the cursor has been released.io.reactivex.rxjava3.core.Single<RowSet<Row>>rxRead(int count)Read rows from the cursor, the result is provided asynchronously to thehandler.StringtoString()
-
-
-
Method Detail
-
getDelegate
public Cursor getDelegate()
-
read
public io.reactivex.rxjava3.core.Single<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:
-
rxRead
public io.reactivex.rxjava3.core.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:
-
hasMore
public boolean hasMore()
Returnstruewhen the cursor has results in progress and theread(int)should be called to retrieve them.- Returns:
- whether the cursor has more results,
-
close
public io.reactivex.rxjava3.core.Completable close()
Likeclose()but with acompletionHandlercalled when the cursor has been released.- Returns:
-
rxClose
public io.reactivex.rxjava3.core.Completable rxClose()
Likeclose()but with acompletionHandlercalled when the cursor has been released.- Returns:
-
isClosed
public boolean isClosed()
- Returns:
- whether the cursor is closed
-
-