-
Notifications
You must be signed in to change notification settings - Fork 12
Query Lifecycle
Riccardo Tommasini edited this page Jan 3, 2021
·
4 revisions
- S2R = Stream to Relation Operators
- R2R = Relation to Relation Operators
- R2S = Relation to Stream Operators
- TVG = Time-Varying Graph
- SDS = Streaming Data Set
- CQE = #Continuous Query Execution
- Consume the S2R operator is start consumeing a stream
- The stream notifies the consumers, i.e., the data item is passed to the S2R operators
- the Continuous Query Execution starts observing the S2R operators
- the S2R operators update the CQE when it is time to compute (according to the Execution Semantics)
- The CQE triggers the materialization of the SDS at the given time instant (in ET)
- the SDS iteratively triggers the materialization of the Time-Varying Graph it contains.
- the CQE triggers the evalution of the R2R over the materialized SDS.
- For each results in the R2R evaluation, the R2S is evaluated
- The R2S writes over the output stream
public interface ContinuousQueryExecution<I, E1, E2> {
WebDataStream<E2> outstream();
ContinuousQuery query();
SDS<E1> sds();
StreamToRelationOp<I, E1>[] s2rs();
RelationToRelationOperator<E2> r2r();
RelationToStreamOperator<E2> r2s();
void add(StreamToRelationOp<I, E1> op);
Stream<SolutionMapping<E2>> eval(Long now);
}