Class SlidingFindableWindowProcessor<S extends State>

    • Constructor Detail

      • SlidingFindableWindowProcessor

        public SlidingFindableWindowProcessor()
    • Method Detail

      • compileCondition

        public CompiledCondition compileCondition​(io.siddhi.query.api.expression.Expression condition,
                                                  MatchingMetaInfoHolder matchingMetaInfoHolder,
                                                  List<VariableExpressionExecutor> variableExpressionExecutors,
                                                  Map<String,​Table> tableMap,
                                                  SiddhiQueryContext siddhiQueryContext)
        Description copied from interface: FindableProcessor
        To construct a finder having the capability of finding events at the processor that corresponds to the incoming matchingEvent and the given matching expression logic.
        Specified by:
        compileCondition in interface FindableProcessor
        Parameters:
        condition - the matching condition
        matchingMetaInfoHolder - the meta structure of the incoming matchingEvent
        variableExpressionExecutors - the list of variable ExpressionExecutors already created
        tableMap - map of event tables
        siddhiQueryContext - current siddhi query context
        Returns:
        compiled Condition having the capability of matching events against the incoming matchingEvent
      • find

        public StreamEvent find​(StateEvent matchingEvent,
                                CompiledCondition compiledCondition)
        Description copied from interface: FindableProcessor
        To find events from the processor event pool, that the matches the matchingEvent based on finder logic.
        Specified by:
        find in interface FindableProcessor
        Parameters:
        matchingEvent - the event to be matched with the events at the processor
        compiledCondition - the execution element responsible for matching the corresponding events that matches the matchingEvent based on pool of events at Processor
        Returns:
        the matched events
      • compileCondition

        public abstract CompiledCondition compileCondition​(io.siddhi.query.api.expression.Expression condition,
                                                           MatchingMetaInfoHolder matchingMetaInfoHolder,
                                                           List<VariableExpressionExecutor> variableExpressionExecutors,
                                                           Map<String,​Table> tableMap,
                                                           S state,
                                                           SiddhiQueryContext siddhiQueryContext)
        To construct a finder having the capability of finding events at the processor that corresponds to the incoming matchingEvent and the given matching expression logic.
        Parameters:
        condition - the matching condition
        matchingMetaInfoHolder - the meta structure of the incoming matchingEvent
        variableExpressionExecutors - the list of variable ExpressionExecutors already created
        tableMap - map of event tables
        state - current query state
        siddhiQueryContext - current siddhi query context
        Returns:
        compiled Condition having the capability of matching events against the incoming matchingEvent
      • find

        public abstract StreamEvent find​(StateEvent matchingEvent,
                                         CompiledCondition compiledCondition,
                                         StreamEventCloner streamEventCloner,
                                         S state)
        To find events from the processor event pool, that the matches the matchingEvent based on finder logic.
        Parameters:
        matchingEvent - the event to be matched with the events at the processor
        compiledCondition - the execution element responsible for matching the corresponding events that matches the matchingEvent based on pool of events at Processor
        streamEventCloner - stream event cloner
        state - current query state @return the matched events