Class DelayWindowProcessor
- 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<io.siddhi.core.query.processor.stream.window.TimeWindowProcessor.WindowState>
-
- io.siddhi.core.query.processor.stream.window.TimeWindowProcessor
-
- io.siddhi.core.query.processor.stream.window.DelayWindowProcessor
-
- All Implemented Interfaces:
Processor,SchedulingProcessor,FindableProcessor,ExternalReferencedHolder
public class DelayWindowProcessor extends TimeWindowProcessor
Implementation ofWindowProcessorwhich represent a Window operating based on delay time.
-
-
Field Summary
-
Fields inherited from class io.siddhi.core.query.processor.stream.AbstractStreamProcessor
attributeExpressionExecutors, attributeExpressionLength, complexEventPopulater, inputDefinition, metaStreamEvent, nextProcessor, stateHolder, streamEventClonerHolder
-
-
Constructor Summary
Constructors Constructor Description DelayWindowProcessor()
-
Method Summary
All Methods Instance 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, io.siddhi.core.query.processor.stream.window.TimeWindowProcessor.WindowState 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, StreamEventCloner streamEventCloner, io.siddhi.core.query.processor.stream.window.TimeWindowProcessor.WindowState state)To find events from the processor event pool, that the matches the matchingEvent based on finder logic.protected StateFactoryinit(ExpressionExecutor[] attributeExpressionExecutors, ConfigReader configReader, SiddhiQueryContext siddhiQueryContext)The init method of the WindowProcessor, this method will be called before other methodsprotected voidprocess(ComplexEventChunk<StreamEvent> streamEventChunk, Processor nextProcessor, StreamEventCloner streamEventCloner, io.siddhi.core.query.processor.stream.window.TimeWindowProcessor.WindowState windowState)The main processing method that will be called upon event arrival-
Methods inherited from class io.siddhi.core.query.processor.stream.window.TimeWindowProcessor
getScheduler, setScheduler, start, stop
-
Methods inherited from class io.siddhi.core.query.processor.stream.window.SlidingFindableWindowProcessor
compileCondition, find
-
Methods inherited from class io.siddhi.core.query.processor.stream.window.SlidingWindowProcessor
getProcessingMode, init, 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.query.processor.Processor
getNextProcessor, process, process, setNextProcessor, setToLast
-
-
-
-
Method Detail
-
init
protected StateFactory init(ExpressionExecutor[] attributeExpressionExecutors, ConfigReader configReader, SiddhiQueryContext siddhiQueryContext)
Description copied from class:SlidingWindowProcessorThe init method of the WindowProcessor, this method will be called before other methods- Overrides:
initin classTimeWindowProcessor- Parameters:
attributeExpressionExecutors- the executors of each function parametersconfigReader- the config reader of windowsiddhiQueryContext- the context of the siddhi query
-
process
protected void process(ComplexEventChunk<StreamEvent> streamEventChunk, Processor nextProcessor, StreamEventCloner streamEventCloner, io.siddhi.core.query.processor.stream.window.TimeWindowProcessor.WindowState windowState)
Description copied from class:SlidingWindowProcessorThe main processing method that will be called upon event arrival- Overrides:
processin classTimeWindowProcessor- Parameters:
streamEventChunk- the stream event chunk that need to be processednextProcessor- the next processor to which the success events need to be passedstreamEventCloner- helps to clone the incoming event for local storage or modificationwindowState- current query state
-
find
public StreamEvent find(StateEvent matchingEvent, CompiledCondition compiledCondition, StreamEventCloner streamEventCloner, io.siddhi.core.query.processor.stream.window.TimeWindowProcessor.WindowState state)
Description copied from class:SlidingFindableWindowProcessorTo find events from the processor event pool, that the matches the matchingEvent based on finder logic.- Overrides:
findin classTimeWindowProcessor- 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
-
compileCondition
public CompiledCondition compileCondition(io.siddhi.query.api.expression.Expression condition, MatchingMetaInfoHolder matchingMetaInfoHolder, List<VariableExpressionExecutor> variableExpressionExecutors, Map<String,Table> tableMap, io.siddhi.core.query.processor.stream.window.TimeWindowProcessor.WindowState state, SiddhiQueryContext siddhiQueryContext)
Description copied from class:SlidingFindableWindowProcessorTo construct a finder having the capability of finding events at the processor that corresponds to the incoming matchingEvent and the given matching expression logic.- Overrides:
compileConditionin classTimeWindowProcessor- 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
-
-