Search in sources :

Example 6 with AbsentStreamStateElement

use of io.siddhi.query.api.execution.query.input.state.AbsentStreamStateElement in project siddhi by siddhi-io.

the class SiddhiQLBaseVisitorImpl method visitBasic_absent_pattern_source.

@Override
public Object visitBasic_absent_pattern_source(SiddhiQLParser.Basic_absent_pattern_sourceContext ctx) {
    // basic_absent_pattern_source
    // :NOT basic_source for_time
    // ;
    AbsentStreamStateElement stateElement = State.logicalNot(new StreamStateElement((BasicSingleInputStream) visit(ctx.basic_source())), (TimeConstant) visit(ctx.for_time()));
    populateQueryContext(stateElement, ctx);
    return stateElement;
}
Also used : StreamStateElement(io.siddhi.query.api.execution.query.input.state.StreamStateElement) AbsentStreamStateElement(io.siddhi.query.api.execution.query.input.state.AbsentStreamStateElement) BasicSingleInputStream(io.siddhi.query.api.execution.query.input.stream.BasicSingleInputStream) AbsentStreamStateElement(io.siddhi.query.api.execution.query.input.state.AbsentStreamStateElement)

Aggregations

AbsentStreamStateElement (io.siddhi.query.api.execution.query.input.state.AbsentStreamStateElement)6 StreamStateElement (io.siddhi.query.api.execution.query.input.state.StreamStateElement)6 BasicSingleInputStream (io.siddhi.query.api.execution.query.input.stream.BasicSingleInputStream)6 CountStateElement (io.siddhi.query.api.execution.query.input.state.CountStateElement)4 EveryStateElement (io.siddhi.query.api.execution.query.input.state.EveryStateElement)4 NextStateElement (io.siddhi.query.api.execution.query.input.state.NextStateElement)4 StateElement (io.siddhi.query.api.execution.query.input.state.StateElement)4 OperationNotSupportedException (io.siddhi.core.exception.OperationNotSupportedException)2 EntryValveProcessor (io.siddhi.core.query.input.stream.single.EntryValveProcessor)2 SingleStreamRuntime (io.siddhi.core.query.input.stream.single.SingleStreamRuntime)2 AbsentLogicalPostStateProcessor (io.siddhi.core.query.input.stream.state.AbsentLogicalPostStateProcessor)2 AbsentLogicalPreStateProcessor (io.siddhi.core.query.input.stream.state.AbsentLogicalPreStateProcessor)2 AbsentStreamPostStateProcessor (io.siddhi.core.query.input.stream.state.AbsentStreamPostStateProcessor)2 AbsentStreamPreStateProcessor (io.siddhi.core.query.input.stream.state.AbsentStreamPreStateProcessor)2 CountPostStateProcessor (io.siddhi.core.query.input.stream.state.CountPostStateProcessor)2 CountPreStateProcessor (io.siddhi.core.query.input.stream.state.CountPreStateProcessor)2 LogicalPostStateProcessor (io.siddhi.core.query.input.stream.state.LogicalPostStateProcessor)2 LogicalPreStateProcessor (io.siddhi.core.query.input.stream.state.LogicalPreStateProcessor)2 PreStateProcessor (io.siddhi.core.query.input.stream.state.PreStateProcessor)2 StreamPostStateProcessor (io.siddhi.core.query.input.stream.state.StreamPostStateProcessor)2