Package io.vertx.reactivex.sqlclient
Class Cursor
- java.lang.Object
-
- io.vertx.reactivex.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 void
close()
Likeclose(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
but with acompletionHandler
called when the cursor has been released.void
close(Handler<AsyncResult<Void>> completionHandler)
Likeclose(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
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, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.sqlclient.RowSet<io.vertx.reactivex.sqlclient.Row>>>)
should be called to retrieve them.boolean
isClosed()
static Cursor
newInstance(Cursor arg)
void
read(int count)
Read rows from the cursor, the result is provided asynchronously to thehandler
.void
read(int count, Handler<AsyncResult<RowSet<Row>>> handler)
Read rows from the cursor, the result is provided asynchronously to thehandler
.io.reactivex.Completable
rxClose()
Likeclose(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
but with acompletionHandler
called when the cursor has been released.io.reactivex.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()
-
read
public void read(int count, Handler<AsyncResult<RowSet<Row>>> handler)
Read rows from the cursor, the result is provided asynchronously to thehandler
.- Parameters:
count
- the amount of rows to readhandler
- the handler for the result
-
read
public void read(int count)
Read rows from the cursor, the result is provided asynchronously to thehandler
.- Parameters:
count
- the amount of rows to read
-
rxRead
public io.reactivex.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, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.sqlclient.RowSet<io.vertx.reactivex.sqlclient.Row>>>)
should be called to retrieve them.- Returns:
- whether the cursor has more results,
-
close
public void close(Handler<AsyncResult<Void>> completionHandler)
Likeclose(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
but with acompletionHandler
called when the cursor has been released.- Parameters:
completionHandler
-
-
close
public void close()
Likeclose(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
but with acompletionHandler
called when the cursor has been released.
-
rxClose
public io.reactivex.Completable rxClose()
Likeclose(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
but with acompletionHandler
called when the cursor has been released.- Returns:
-
isClosed
public boolean isClosed()
- Returns:
- whether the cursor is closed
-
-