Interface FindableProcessor

    • Method Detail

      • find

        StreamEvent find​(StateEvent matchingEvent,
                         CompiledCondition compiledCondition)
        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
        Returns:
        the matched events
      • compileCondition

        CompiledCondition compileCondition​(io.siddhi.query.api.expression.Expression condition,
                                           MatchingMetaInfoHolder matchingMetaInfoHolder,
                                           List<VariableExpressionExecutor> variableExpressionExecutors,
                                           Map<String,​Table> tableMap,
                                           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
        siddhiQueryContext - current siddhi query context
        Returns:
        compiled Condition having the capability of matching events against the incoming matchingEvent