Search in sources :

Example 6 with StateInputStream

use of org.ballerinalang.siddhi.query.api.execution.query.input.stream.StateInputStream in project ballerina by ballerina-lang.

the class SiddhiQLBaseVisitorImpl method visitSequence_stream.

/**
 * {@inheritDoc}
 * <p>The default implementation returns the result of calling
 * {@link #visitChildren} on {@code ctx}.</p>
 *
 * @param ctx
 */
@Override
public StateInputStream visitSequence_stream(@NotNull SiddhiQLParser.Sequence_streamContext ctx) {
    // ;
    if (ctx.every_sequence_source_chain() != null) {
        StateInputStream stateInputStream = (StateInputStream) visitEvery_sequence_source_chain(ctx.every_sequence_source_chain());
        populateQueryContext(stateInputStream, ctx);
        return stateInputStream;
    } else {
        StateInputStream stateInputStream = (StateInputStream) visitEvery_absent_sequence_source_chain(ctx.every_absent_sequence_source_chain());
        populateQueryContext(stateInputStream, ctx);
        return stateInputStream;
    }
}
Also used : StateInputStream(org.ballerinalang.siddhi.query.api.execution.query.input.stream.StateInputStream)

Aggregations

StateInputStream (org.ballerinalang.siddhi.query.api.execution.query.input.stream.StateInputStream)6 CountStateElement (org.ballerinalang.siddhi.query.api.execution.query.input.state.CountStateElement)4 EveryStateElement (org.ballerinalang.siddhi.query.api.execution.query.input.state.EveryStateElement)4 NextStateElement (org.ballerinalang.siddhi.query.api.execution.query.input.state.NextStateElement)4 StateElement (org.ballerinalang.siddhi.query.api.execution.query.input.state.StateElement)4 StreamStateElement (org.ballerinalang.siddhi.query.api.execution.query.input.state.StreamStateElement)4 AbsentStreamStateElement (org.ballerinalang.siddhi.query.api.execution.query.input.state.AbsentStreamStateElement)3 JoinInputStream (org.ballerinalang.siddhi.query.api.execution.query.input.stream.JoinInputStream)2 SingleInputStream (org.ballerinalang.siddhi.query.api.execution.query.input.stream.SingleInputStream)2 ArrayList (java.util.ArrayList)1 List (java.util.List)1 MetaStateEvent (org.ballerinalang.siddhi.core.event.state.MetaStateEvent)1 MetaStreamEvent (org.ballerinalang.siddhi.core.event.stream.MetaStreamEvent)1 OperationNotSupportedException (org.ballerinalang.siddhi.core.exception.OperationNotSupportedException)1 ProcessStreamReceiver (org.ballerinalang.siddhi.core.query.input.ProcessStreamReceiver)1 JoinStreamRuntime (org.ballerinalang.siddhi.core.query.input.stream.join.JoinStreamRuntime)1 SingleStreamRuntime (org.ballerinalang.siddhi.core.query.input.stream.single.SingleStreamRuntime)1 StateStreamRuntime (org.ballerinalang.siddhi.core.query.input.stream.state.StateStreamRuntime)1 Window (org.ballerinalang.siddhi.core.window.Window)1 Query (org.ballerinalang.siddhi.query.api.execution.query.Query)1