public class DelayWindowProcessor extends TimeWindowProcessor
WindowProcessor which represent a Window operating based on delay time.additionalAttributes, attributeExpressionExecutors, attributeExpressionLength, complexEventPopulater, elementId, inputDefinition, nextProcessor, queryName, streamEventCloner, streamEventClonerHolder| Constructor and Description |
|---|
DelayWindowProcessor() |
| Modifier and Type | Method and Description |
|---|---|
CompiledCondition |
compileCondition(org.wso2.siddhi.query.api.expression.Expression condition,
MatchingMetaInfoHolder matchingMetaInfoHolder,
SiddhiAppContext siddhiAppContext,
List<VariableExpressionExecutor> variableExpressionExecutors,
Map<String,Table> tableMap,
String queryName)
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.
|
Map<String,Object> |
currentState()
Used to collect the serializable state of the processing element, that need to be
persisted for the reconstructing the element to the same state on a different point of time
|
StreamEvent |
find(StateEvent matchingEvent,
CompiledCondition compiledCondition)
To find events from the processor event pool, that the matches the matchingEvent based on finder logic.
|
protected void |
init(ExpressionExecutor[] attributeExpressionExecutors,
ConfigReader configReader,
boolean outputExpectsExpiredEvents,
SiddhiAppContext siddhiAppContext)
The init method of the WindowProcessor, this method will be called before other methods
|
protected void |
process(ComplexEventChunk<StreamEvent> streamEventChunk,
Processor nextProcessor,
StreamEventCloner streamEventCloner)
The main processing method that will be called upon event arrival
|
void |
restoreState(Map<String,Object> state)
Used to restore serialized state of the processing element, for reconstructing
the element to the same state as if was on a previous point of time.
|
getScheduler, setScheduler, setTimeInMilliSeconds, start, stopinit, processEventChunkcloneProcessor, constructStreamEventPopulater, getElementId, getNextProcessor, initProcessor, process, setNextProcessor, setStreamEventCloner, setToLastclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloneProcessor, getNextProcessor, process, setNextProcessor, setToLastprotected void init(ExpressionExecutor[] attributeExpressionExecutors, ConfigReader configReader, boolean outputExpectsExpiredEvents, SiddhiAppContext siddhiAppContext)
WindowProcessorinit in class TimeWindowProcessorattributeExpressionExecutors - the executors of each function parametersconfigReader - the config reader of windowoutputExpectsExpiredEvents - is expired event out put or notsiddhiAppContext - the context of the siddhi appprotected void process(ComplexEventChunk<StreamEvent> streamEventChunk, Processor nextProcessor, StreamEventCloner streamEventCloner)
WindowProcessorprocess in class TimeWindowProcessorstreamEventChunk - 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 modificationpublic StreamEvent find(StateEvent matchingEvent, CompiledCondition compiledCondition)
FindableProcessorfind in interface FindableProcessorfind in class TimeWindowProcessormatchingEvent - 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 Processorpublic CompiledCondition compileCondition(org.wso2.siddhi.query.api.expression.Expression condition, MatchingMetaInfoHolder matchingMetaInfoHolder, SiddhiAppContext siddhiAppContext, List<VariableExpressionExecutor> variableExpressionExecutors, Map<String,Table> tableMap, String queryName)
FindableProcessorcompileCondition in interface FindableProcessorcompileCondition in class TimeWindowProcessorcondition - the matching conditionmatchingMetaInfoHolder - the meta structure of the incoming matchingEventsiddhiAppContext - current siddhi app contextvariableExpressionExecutors - the list of variable ExpressionExecutors already createdtableMap - map of event tablesqueryName - query name of findable processor belongs to.public Map<String,Object> currentState()
SnapshotablecurrentState in interface SnapshotablecurrentState in class TimeWindowProcessorpublic void restoreState(Map<String,Object> state)
SnapshotablerestoreState in interface SnapshotablerestoreState in class TimeWindowProcessorstate - the stateful objects of the element as an array on
the same order provided by currentState().Copyright © 2018 WSO2. All rights reserved.