public class SQLRowStream extends Object implements ReadStream<JsonArray>
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<SQLRowStream> |
__TYPE_ARG |
| Constructor and Description |
|---|
SQLRowStream(Object delegate) |
SQLRowStream(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).
|
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. |
SQLRowStream |
getDelegate() |
SQLRowStream |
handler(Handler<JsonArray> handler)
Set a data handler.
|
int |
hashCode() |
void |
moreResults()
Request for more results if available
|
static SQLRowStream |
newInstance(SQLRowStream arg) |
SQLRowStream |
pause()
Pause the
ReadStream, it sets the buffer in fetch mode and clears the actual demand. |
Pipe<JsonArray> |
pipe()
Pause this stream and return a to transfer the elements of this stream to a destination .
|
void |
pipeTo(WriteStream<JsonArray> dst)
Pipe this
ReadStream to the WriteStream. |
void |
pipeTo(WriteStream<JsonArray> dst,
Handler<AsyncResult<Void>> handler)
Pipe this
ReadStream to the WriteStream. |
SQLRowStream |
resultSetClosedHandler(Handler<Void> handler)
Event handler when a resultset is closed.
|
SQLRowStream |
resume()
Resume reading, and sets the buffer in
flowing mode. |
Completable |
rxClose()
Closes the stream/underlying cursor(s).
|
Completable |
rxPipeTo(WriteStream<JsonArray> dst)
Pipe this
ReadStream to the WriteStream. |
Flowable<JsonArray> |
toFlowable() |
Observable<JsonArray> |
toObservable() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitnewInstance, newInstancenewInstancepublic static final io.vertx.lang.rx.TypeArg<SQLRowStream> __TYPE_ARG
public SQLRowStream(SQLRowStream delegate)
public SQLRowStream(Object delegate)
public SQLRowStream getDelegate()
getDelegate in interface ReadStream<JsonArray>getDelegate in interface StreamBasepublic Observable<JsonArray> toObservable()
toObservable in interface ReadStream<JsonArray>public Flowable<JsonArray> toFlowable()
toFlowable 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 Pipe<JsonArray> pipe()
WriteStream.pipe in interface ReadStream<JsonArray>public void pipeTo(WriteStream<JsonArray> dst, Handler<AsyncResult<Void>> handler)
ReadStream to the WriteStream.
Elements emitted by this stream will be written to the write stream until this stream ends or fails.
Once this stream has ended or failed, the write stream will be ended and the handler will be
called with the result.
pipeTo in interface ReadStream<JsonArray>dst - the destination write streamhandler - public void pipeTo(WriteStream<JsonArray> dst)
ReadStream to the WriteStream.
Elements emitted by this stream will be written to the write stream until this stream ends or fails.
Once this stream has ended or failed, the write stream will be ended and the handler will be
called with the result.
pipeTo in interface ReadStream<JsonArray>dst - the destination write streampublic Completable rxPipeTo(WriteStream<JsonArray> dst)
ReadStream to the WriteStream.
Elements emitted by this stream will be written to the write stream until this stream ends or fails.
Once this stream has ended or failed, the write stream will be ended and the handler will be
called with the result.
rxPipeTo in interface ReadStream<JsonArray>dst - the destination write streampublic 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) closedpublic Completable rxClose()
public static SQLRowStream newInstance(SQLRowStream arg)
Copyright © 2021 Eclipse. All rights reserved.