Class SlidingFindableWindowProcessor<S extends State>
- java.lang.Object
-
- io.siddhi.core.query.processor.stream.AbstractStreamProcessor<S>
-
- io.siddhi.core.query.processor.stream.window.WindowProcessor<S>
-
- io.siddhi.core.query.processor.stream.window.SlidingWindowProcessor<S>
-
- io.siddhi.core.query.processor.stream.window.SlidingFindableWindowProcessor<S>
-
- Type Parameters:
S- current state of the processor
- All Implemented Interfaces:
Processor,FindableProcessor,ExternalReferencedHolder
- Direct Known Subclasses:
ExpressionWindowProcessor,ExternalTimeWindowProcessor,FrequentWindowProcessor,LengthWindowProcessor,LossyFrequentWindowProcessor,SortWindowProcessor,TimeLengthWindowProcessor,TimeWindowProcessor
public abstract class SlidingFindableWindowProcessor<S extends State> extends SlidingWindowProcessor<S> implements FindableProcessor
Performs event processing in a sliding manner while supporting event search
-
-
Field Summary
-
Fields inherited from class io.siddhi.core.query.processor.stream.AbstractStreamProcessor
attributeExpressionExecutors, attributeExpressionLength, complexEventPopulater, inputDefinition, metaStreamEvent, nextProcessor, siddhiQueryContext, stateHolder, streamEventClonerHolder
-
-
Constructor Summary
Constructors Constructor Description SlidingFindableWindowProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete 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.abstract CompiledConditioncompileCondition(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.StreamEventfind(StateEvent matchingEvent, CompiledCondition compiledCondition)To find events from the processor event pool, that the matches the matchingEvent based on finder logic.abstract StreamEventfind(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.-
Methods inherited from class io.siddhi.core.query.processor.stream.window.SlidingWindowProcessor
getProcessingMode, init, init, process, processEventChunk
-
Methods inherited from class io.siddhi.core.query.processor.stream.window.WindowProcessor
getReturnAttributes
-
Methods inherited from class io.siddhi.core.query.processor.stream.AbstractStreamProcessor
constructStreamEventPopulater, getNextProcessor, initProcessor, isStateful, process, process, setNextProcessor, setStreamEventCloner, setToLast
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.siddhi.core.util.extension.holder.ExternalReferencedHolder
start, stop
-
-
-
-
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:FindableProcessorTo 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:
compileConditionin interfaceFindableProcessor- 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
-
find
public StreamEvent find(StateEvent matchingEvent, CompiledCondition compiledCondition)
Description copied from interface:FindableProcessorTo find events from the processor event pool, that the matches the matchingEvent based on finder logic.- Specified by:
findin interfaceFindableProcessor- 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
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 conditionmatchingMetaInfoHolder- the meta structure of the incoming matchingEventvariableExpressionExecutors- the list of variable ExpressionExecutors already createdtableMap- map of event tablesstate- current query statesiddhiQueryContext- 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 processorcompiledCondition- the execution element responsible for matching the corresponding events that matches the matchingEvent based on pool of events at ProcessorstreamEventCloner- stream event clonerstate- current query state @return the matched events
-
-