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 voidclose()Likeclose(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)but with acompletionHandlercalled when the cursor has been released.voidclose(Handler<AsyncResult<Void>> completionHandler)Likeclose(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)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, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.sqlclient.RowSet<io.vertx.reactivex.sqlclient.Row>>>)should be called to retrieve them.booleanisClosed()static CursornewInstance(Cursor arg)voidread(int count)Read rows from the cursor, the result is provided asynchronously to thehandler.voidread(int count, Handler<AsyncResult<RowSet<Row>>> handler)Read rows from the cursor, the result is provided asynchronously to thehandler.io.reactivex.CompletablerxClose()Likeclose(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)but with acompletionHandlercalled 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.StringtoString()
-
-
-
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()
Returnstruewhen 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 acompletionHandlercalled 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 acompletionHandlercalled 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 acompletionHandlercalled when the cursor has been released.- Returns:
-
isClosed
public boolean isClosed()
- Returns:
- whether the cursor is closed
-
-