public class IncrementalExecutor extends Object implements Executor, Snapshotable
| Constructor and Description |
|---|
IncrementalExecutor(String aggregatorName,
org.wso2.siddhi.query.api.aggregation.TimePeriod.Duration duration,
List<ExpressionExecutor> processExpressionExecutors,
ExpressionExecutor shouldUpdateTimestamp,
GroupByKeyGenerator groupByKeyGenerator,
MetaStreamEvent metaStreamEvent,
IncrementalExecutor child,
boolean isRoot,
Table table,
SiddhiAppContext siddhiAppContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
clean()
Used to clean its references
|
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
|
void |
execute(ComplexEventChunk streamEventChunk)
Execute the handed StreamEvent
|
long |
getAggregationStartTimestamp() |
String |
getElementId() |
Executor |
getNextExecutor()
Get next executor element in the execution chain.
|
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.
|
void |
setEmitTimestamp(long emitTimeOfLatestEventInTable) |
void |
setNextExecutor(Executor nextExecutor)
Set next executor element in execution chain
|
void |
setProcessingExecutor(boolean processingExecutor) |
void |
setScheduler(Scheduler scheduler) |
public IncrementalExecutor(String aggregatorName, org.wso2.siddhi.query.api.aggregation.TimePeriod.Duration duration, List<ExpressionExecutor> processExpressionExecutors, ExpressionExecutor shouldUpdateTimestamp, GroupByKeyGenerator groupByKeyGenerator, MetaStreamEvent metaStreamEvent, IncrementalExecutor child, boolean isRoot, Table table, SiddhiAppContext siddhiAppContext)
public void setScheduler(Scheduler scheduler)
public void execute(ComplexEventChunk streamEventChunk)
Executorpublic Executor getNextExecutor()
ExecutorgetNextExecutor in interface Executorpublic void setNextExecutor(Executor nextExecutor)
ExecutorsetNextExecutor in interface ExecutornextExecutor - Event executor for incremental executionpublic long getAggregationStartTimestamp()
public void setEmitTimestamp(long emitTimeOfLatestEventInTable)
public void setProcessingExecutor(boolean processingExecutor)
public Map<String,Object> currentState()
SnapshotablecurrentState in interface Snapshotablepublic void restoreState(Map<String,Object> state)
SnapshotablerestoreState in interface Snapshotablestate - the stateful objects of the element as an array on
the same order provided by currentState().public String getElementId()
getElementId in interface Snapshotablepublic void clean()
Snapshotableclean in interface SnapshotableCopyright © 2019 WSO2. All rights reserved.