Package io.siddhi.core.aggregation
Class IncrementalExecutor
- java.lang.Object
-
- io.siddhi.core.aggregation.IncrementalExecutor
-
-
Constructor Summary
Constructors Constructor Description IncrementalExecutor(String aggregatorName, io.siddhi.query.api.aggregation.TimePeriod.Duration duration, List<ExpressionExecutor> processExpressionExecutors, ExpressionExecutor shouldUpdateTimestamp, GroupByKeyGenerator groupByKeyGenerator, boolean isRoot, Table table, Executor child, SiddhiQueryContext siddhiQueryContext, MetaStreamEvent metaStreamEvent, String timeZone, boolean waitUntillprocessFinish)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(ComplexEventChunk streamEventChunk)Execute the handed StreamEventlonggetAggregationStartTimestamp()ExecutorgetNextExecutor()Get next executor element in the execution chain.voidsetEmitTime(long emitTimeOfLatestEventInTable)voidsetNextExecutor(Executor nextExecutor)Set next executor element in execution chainvoidsetProcessingExecutor(boolean processingExecutor)voidsetScheduler(Scheduler scheduler)
-
-
-
Constructor Detail
-
IncrementalExecutor
public IncrementalExecutor(String aggregatorName, io.siddhi.query.api.aggregation.TimePeriod.Duration duration, List<ExpressionExecutor> processExpressionExecutors, ExpressionExecutor shouldUpdateTimestamp, GroupByKeyGenerator groupByKeyGenerator, boolean isRoot, Table table, Executor child, SiddhiQueryContext siddhiQueryContext, MetaStreamEvent metaStreamEvent, String timeZone, boolean waitUntillprocessFinish)
-
-
Method Detail
-
setScheduler
public void setScheduler(Scheduler scheduler)
-
execute
public void execute(ComplexEventChunk streamEventChunk)
Description copied from interface:ExecutorExecute the handed StreamEvent
-
getNextExecutor
public Executor getNextExecutor()
Description copied from interface:ExecutorGet next executor element in the execution chain. Executed event should be sent to next executor- Specified by:
getNextExecutorin interfaceExecutor- Returns:
- next executor
-
setNextExecutor
public void setNextExecutor(Executor nextExecutor)
Description copied from interface:ExecutorSet next executor element in execution chain- Specified by:
setNextExecutorin interfaceExecutor- Parameters:
nextExecutor- Event executor for incremental execution
-
getAggregationStartTimestamp
public long getAggregationStartTimestamp()
-
setEmitTime
public void setEmitTime(long emitTimeOfLatestEventInTable)
- Specified by:
setEmitTimein interfaceExecutor
-
setProcessingExecutor
public void setProcessingExecutor(boolean processingExecutor)
-
-