Interface FindableProcessor
-
- All Known Subinterfaces:
QueryableProcessor
- All Known Implementing Classes:
AbstractQueryableRecordTable,AbstractRecordTable,AggregateWindowProcessor,BatchingFindableWindowProcessor,BatchWindowProcessor,CacheTable,CacheTableFIFO,CacheTableLFU,CacheTableLRU,DelayWindowProcessor,EmptyWindowProcessor,ExpressionBatchWindowProcessor,ExpressionWindowProcessor,ExternalTimeBatchWindowProcessor,ExternalTimeWindowProcessor,FrequentWindowProcessor,GroupingFindableWindowProcessor,InMemoryTable,LengthBatchWindowProcessor,LengthWindowProcessor,LossyFrequentWindowProcessor,SessionWindowProcessor,SlidingFindableWindowProcessor,SortWindowProcessor,Table,TableWindowProcessor,TimeBatchWindowProcessor,TimeLengthWindowProcessor,TimeWindowProcessor,Window,WindowWindowProcessor
public interface FindableProcessorInterface for all processors which holds a collection of events and supports traversing and finding events from that collection. find() will be used by Pattern and Join Processors to get matching event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompiledConditioncompileCondition(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.StreamEventfind(StateEvent matchingEvent, CompiledCondition compiledCondition)To find events from the processor event pool, that the matches the matchingEvent based on finder logic.
-
-
-
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 processorcompiledCondition- 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 conditionmatchingMetaInfoHolder- the meta structure of the incoming matchingEventvariableExpressionExecutors- the list of variable ExpressionExecutors already createdtableMap- map of event tablessiddhiQueryContext- current siddhi query context- Returns:
- compiled Condition having the capability of matching events against the incoming matchingEvent
-
-