Package io.vertx.rxjava3.sqlclient
Class Cursor
- java.lang.Object
-
- io.vertx.rxjava3.sqlclient.Cursor
-
- All Implemented Interfaces:
RxDelegate
public class Cursor extends Object implements RxDelegate
A cursor that reads progressively rows from the database, it is useful for reading very large result sets. NOTE: This class has been automatically generated from theoriginal
non RX-ified interface using Vert.x codegen.
-
-
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.Completable
close()
Likeclose()
but with acompletionHandler
called when the cursor has been released.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)
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.Completable
rxClose()
Likeclose()
but with acompletionHandler
called 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
.String
toString()
-
-
-
Method Detail
-
getDelegate
public Cursor getDelegate()
- Specified by:
getDelegate
in interfaceRxDelegate
-
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()
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 io.reactivex.rxjava3.core.Completable close()
Likeclose()
but with acompletionHandler
called when the cursor has been released.- Returns:
-
rxClose
public io.reactivex.rxjava3.core.Completable rxClose()
Likeclose()
but with acompletionHandler
called when the cursor has been released.- Returns:
-
isClosed
public boolean isClosed()
- Returns:
- whether the cursor is closed
-
-