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:
|
endHandler | shared actual default ReadStream<Array> endHandler(Anything() arg0) 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 ReadStream<Array> exceptionHandler(Anything(Throwable) arg0) Set an exception handler. Refines StreamBase.exceptionHandler |
handler | shared actual default ReadStream<Array> handler(Anything(Array) arg0) 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 ReadStream<Array> 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. |
resume | shared actual default ReadStream<Array> 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 |