Package io.siddhi.core.aggregation
Interface Executor
-
- All Known Implementing Classes:
EntryValveExecutor,IncrementalExecutor,PersistedIncrementalExecutor
public interface ExecutorThis is the parent interface representing Event executor for incremental execution in Siddhi. Each event executor (IncrementalExecutor) corresponds to a duration specified inTimePeriod.Duration. Apart from that,EntryValveExecutorwhich is a special implementation of this interface, marks the entry point to the rest of the incremental executors. All of these executors are chained in such a way, thatEntryValveExecutorlinks to the firstIncrementalExecutorcorresponding to the minimum duration, and the rest of theIncrementalExecutors link in ascending order of durations. AComplexEventChunkreceived by a certain executor would thus be handed over to next executor in-line.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute(ComplexEventChunk complexEventChunk)Execute the handed StreamEventExecutorgetNextExecutor()Get next executor element in the execution chain.voidsetEmitTime(long emitTimeOfLatestEventInTable)voidsetNextExecutor(Executor executor)Set next executor element in execution chain
-
-
-
Method Detail
-
execute
void execute(ComplexEventChunk complexEventChunk)
Execute the handed StreamEvent- Parameters:
complexEventChunk- event chunk to be processed
-
getNextExecutor
Executor getNextExecutor()
Get next executor element in the execution chain. Executed event should be sent to next executor- Returns:
- next executor
-
setNextExecutor
void setNextExecutor(Executor executor)
Set next executor element in execution chain- Parameters:
executor- Event executor for incremental execution
-
setEmitTime
void setEmitTime(long emitTimeOfLatestEventInTable)
-
-