A ReadStream of Rows from the underlying RDBMS. This class follows the ReadStream semantics and will automatically close the underlying resources if all returned rows are returned. For cases where the results are ignored before the full processing of the returned rows is complete the close method MUST be called in order to release underlying resources.
The interface is minimal in order to support all SQL clients not just JDBC.
Anything
SQLRowStream
Basic
Identifiable
Object
Anything
ReadStream
StreamBase
no subtypes hierarchy
Initializer |
SQLRowStream(SQLRowStream unknown) |
Inherited Attributes |
Attributes inherited from: Object hash , string |
Methods | |
close | shared default void close() Closes the stream/underlying cursor(s). The actual close happens asynchronously. |
close | shared default void close(Anything(Throwable?) handler) Closes the stream/underlying cursor(s). The actual close happens asynchronously. Parameters:
|
column | shared default Integer column(String name) Will convert the column name to the json array index. Parameters:
|
columns | shared default List<String> columns() Returns all column names available in the underlying resultset. One needs to carefully use this method since in contrast to the singular version it does not perform case insensitive lookups or takes alias in consideration on the column names. |
endHandler | shared actual default SQLRowStream endHandler(Anything() endHandler) Set an end handler. Once the stream has ended, and there is no more data to be read, this handler will be called. Refines ReadStream.endHandler |
exceptionHandler | shared actual default SQLRowStream exceptionHandler(Anything(Throwable) handler) Set an exception handler. Refines StreamBase.exceptionHandler |
handler | shared actual default SQLRowStream handler(Anything(Array) handler) Set a data handler. As data is read, the handler will be called with the data. Refines ReadStream.handler |
moreResults | shared default void moreResults() Request for more results if available |
pause | shared actual default SQLRowStream pause() Pause the Refines ReadStream.pause |
resultSetClosedHandler | shared default SQLRowStream resultSetClosedHandler(Anything() handler) Event handler when a resultset is closed. This is useful to request for more results. Parameters:
|
resume | shared actual default SQLRowStream resume() Resume reading. If the Refines ReadStream.resume |
Inherited Methods |
Methods inherited from: Object equals |
Methods inherited from: ReadStream<T> endHandler , exceptionHandler , handler , pause , resume |
Methods inherited from: StreamBase exceptionHandler |