Sparksee
6.0.2
|
Query stream interface. More...
Public Member Functions | |
virtual | ~QueryStream () |
Destructor. | |
virtual bool_t | Prepare (const ValueList &list)=0 |
Prepares the stream before it is started. More... | |
virtual bool_t | Start (ResultSetList &list)=0 |
Starts the stream. More... | |
virtual bool_t | Fetch (ValueList &list)=0 |
Gets the next row and moves the iterator forward. More... | |
Protected Member Functions | |
QueryStream () | |
Default constructor. | |
Query stream interface.
A QueryStream is the interface between the application and the STREAM operator. When the operator starts inside a Query, the method is prepared with query-defined arguments. Then, if there are input operations, the STREAM operator builds the ResultSets and starts the iteration. Finally, the operator fetches rows until no more are available.
Application exceptions must be cached by the subclass that implements the interface.
Gets the next row and moves the iterator forward.
The end of sequence is denoted by returning TRUE with an empty row. A valid row must contain as many values (even NULL) as expected by the query.
list | [out] Storage for the new rows |
Prepares the stream before it is started.
list | [in] Optional list of arguments |
|
pure virtual |
Starts the stream.
list | [in] Optional list of input ResultSets |