public class SQLRowStream extends Object implements ReadStream<JsonArray>
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static <any> |
__TYPE_ARG |
| Constructor and Description |
|---|
SQLRowStream(io.vertx.ext.sql.SQLRowStream delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream/underlying cursor(s).
|
void |
close(Handler<AsyncResult<Void>> handler)
Closes the stream/underlying cursor(s).
|
Observable<Void> |
closeObservable()
Deprecated.
use
rxClose() instead |
int |
column(String name)
Will convert the column name to the json array index.
|
List<String> |
columns()
Returns all column names available in the underlying resultset.
|
SQLRowStream |
endHandler(Handler<Void> endHandler)
Set an end handler.
|
boolean |
equals(Object o) |
SQLRowStream |
exceptionHandler(Handler<Throwable> handler)
Set an exception handler on the read stream.
|
ReadStream<JsonArray> |
fetch(long amount)
Fetch the specified
amount of elements. |
io.vertx.ext.sql.SQLRowStream |
getDelegate() |
SQLRowStream |
handler(Handler<JsonArray> handler)
Set a data handler.
|
int |
hashCode() |
void |
moreResults()
Request for more results if available
|
static SQLRowStream |
newInstance(io.vertx.ext.sql.SQLRowStream arg) |
SQLRowStream |
pause()
Pause the
ReadStream, it sets the buffer in fetch mode and clears the actual demand. |
SQLRowStream |
resultSetClosedHandler(Handler<Void> handler)
Event handler when a resultset is closed.
|
SQLRowStream |
resume()
Resume reading, and sets the buffer in
flowing mode. |
Single<Void> |
rxClose()
Closes the stream/underlying cursor(s).
|
Observable<JsonArray> |
toObservable() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitnewInstance, newInstancenewInstancepublic io.vertx.ext.sql.SQLRowStream getDelegate()
getDelegate in interface ReadStream<JsonArray>getDelegate in interface StreamBasepublic Observable<JsonArray> toObservable()
toObservable in interface ReadStream<JsonArray>public ReadStream<JsonArray> fetch(long amount)
amount of elements. If the ReadStream has been paused, reading will
recommence with the specified amount of items, otherwise the specified amount will
be added to the current stream demand.fetch in interface ReadStream<JsonArray>amount - public SQLRowStream exceptionHandler(Handler<Throwable> handler)
ReadStreamexceptionHandler in interface ReadStream<JsonArray>exceptionHandler in interface StreamBasehandler - the exception handlerpublic SQLRowStream handler(Handler<JsonArray> handler)
ReadStreamhandler in interface ReadStream<JsonArray>public SQLRowStream pause()
ReadStreamReadStream, it sets the buffer in fetch mode and clears the actual demand.
While it's paused, no data will be sent to the data handler.
pause in interface ReadStream<JsonArray>public SQLRowStream resume()
ReadStreamflowing mode.
If the ReadStream has been paused, reading will recommence on it.resume in interface ReadStream<JsonArray>public SQLRowStream endHandler(Handler<Void> endHandler)
ReadStreamendHandler in interface ReadStream<JsonArray>public int column(String name)
name - the column namepublic List<String> columns()
public SQLRowStream resultSetClosedHandler(Handler<Void> handler)
handler - called when the current result set is closedpublic void moreResults()
public void close()
public void close(Handler<AsyncResult<Void>> handler)
handler - called when the stream/underlying cursor(s) is(are) closed@Deprecated public Observable<Void> closeObservable()
rxClose() insteadpublic Single<Void> rxClose()
public static SQLRowStream newInstance(io.vertx.ext.sql.SQLRowStream arg)
Copyright © 2018 Eclipse. All rights reserved.