public class QueryStream
extends java.lang.Object
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.
Modifier and Type | Method and Description |
---|---|
boolean |
fetch(ValueList list)
Gets the next row and moves the iterator forward.
|
boolean |
prepare(ValueList list)
Prepares the stream before it is started.
|
boolean |
start(ResultSetList list)
Starts the stream.
|
public boolean fetch(ValueList list)
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 rowspublic boolean prepare(ValueList list)
list
- [in] Optional list of argumentspublic boolean start(ResultSetList list)
list
- [in] Optional list of input ResultSets