public interface SQLRowStream
extends io.vertx.core.streams.ReadStream<io.vertx.core.json.JsonArray>
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the stream/underlying cursor(s).
|
void |
close(io.vertx.core.Handler<io.vertx.core.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(io.vertx.core.Handler<Void> endHandler) |
SQLRowStream |
exceptionHandler(io.vertx.core.Handler<Throwable> handler) |
SQLRowStream |
handler(io.vertx.core.Handler<io.vertx.core.json.JsonArray> handler) |
void |
moreResults()
Request for more results if available
|
SQLRowStream |
pause() |
SQLRowStream |
resultSetClosedHandler(io.vertx.core.Handler<Void> handler)
Event handler when a resultset is closed.
|
SQLRowStream |
resume() |
SQLRowStream exceptionHandler(io.vertx.core.Handler<Throwable> handler)
exceptionHandler
in interface io.vertx.core.streams.ReadStream<io.vertx.core.json.JsonArray>
exceptionHandler
in interface io.vertx.core.streams.StreamBase
SQLRowStream handler(io.vertx.core.Handler<io.vertx.core.json.JsonArray> handler)
handler
in interface io.vertx.core.streams.ReadStream<io.vertx.core.json.JsonArray>
SQLRowStream pause()
pause
in interface io.vertx.core.streams.ReadStream<io.vertx.core.json.JsonArray>
SQLRowStream resume()
resume
in interface io.vertx.core.streams.ReadStream<io.vertx.core.json.JsonArray>
SQLRowStream endHandler(io.vertx.core.Handler<Void> endHandler)
endHandler
in interface io.vertx.core.streams.ReadStream<io.vertx.core.json.JsonArray>
int column(String name)
name
- the column nameList<String> columns()
SQLRowStream resultSetClosedHandler(io.vertx.core.Handler<Void> handler)
handler
- called when the current result set is closedvoid moreResults()
void close()
void close(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
handler
- called when the stream/underlying cursor(s) is(are) closedCopyright © 2020 Eclipse. All rights reserved.