public class IncrementalExecutor extends Object implements Executor, Snapshotable
| Constructor and Description |
|---|
IncrementalExecutor(org.wso2.siddhi.query.api.aggregation.TimePeriod.Duration duration,
List<ExpressionExecutor> processExpressionExecutors,
GroupByKeyGenerator groupByKeyGenerator,
MetaStreamEvent metaStreamEvent,
IncrementalExecutor child,
boolean isRoot,
Table table,
SiddhiAppContext siddhiAppContext,
String aggregatorName,
ExpressionExecutor shouldUpdateExpressionExecutor) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearExecutor() |
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() |
long |
getNextEmitTime() |
Executor |
getNextExecutor()
Get next executor element in the execution chain.
|
boolean |
isProcessingExecutor() |
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 |
setNextExecutor(Executor nextExecutor)
Set next executor element in execution chain
|
void |
setProcessingExecutor(boolean processingExecutor) |
void |
setScheduler(Scheduler scheduler) |
void |
setValuesForInMemoryRecreateFromTable(long emitTimeOfLatestEventInTable) |
public IncrementalExecutor(org.wso2.siddhi.query.api.aggregation.TimePeriod.Duration duration,
List<ExpressionExecutor> processExpressionExecutors,
GroupByKeyGenerator groupByKeyGenerator,
MetaStreamEvent metaStreamEvent,
IncrementalExecutor child,
boolean isRoot,
Table table,
SiddhiAppContext siddhiAppContext,
String aggregatorName,
ExpressionExecutor shouldUpdateExpressionExecutor)
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 long getNextEmitTime()
public void setValuesForInMemoryRecreateFromTable(long emitTimeOfLatestEventInTable)
public boolean isProcessingExecutor()
public void setProcessingExecutor(boolean processingExecutor)
public void clearExecutor()
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 SnapshotableCopyright © 2019 WSO2. All rights reserved.