public class IncrementalAggregateBaseTimeFunctionExecutor extends FunctionExecutor
attributeExpressionExecutors, elementId, functionId, queryName, siddhiAppContext| Constructor and Description |
|---|
IncrementalAggregateBaseTimeFunctionExecutor() |
| Modifier and Type | Method and Description |
|---|---|
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
|
protected Object |
execute(Object data)
The main execution method which will be called upon event arrival
when there are zero or one function parameter
|
protected Object |
execute(Object[] data)
The main execution method which will be called upon event arrival
when there are more then one function parameter
|
org.wso2.siddhi.query.api.definition.Attribute.Type |
getReturnType() |
protected void |
init(ExpressionExecutor[] attributeExpressionExecutors,
ConfigReader configReader,
SiddhiAppContext siddhiAppContext)
The initialization method for FunctionExecutor, this method will be called before the other methods
|
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.
|
cloneExecutor, execute, getElementId, initExecutorpublic IncrementalAggregateBaseTimeFunctionExecutor()
protected void init(ExpressionExecutor[] attributeExpressionExecutors, ConfigReader configReader, SiddhiAppContext siddhiAppContext)
FunctionExecutorinit in class FunctionExecutorattributeExpressionExecutors - are the executors of each function parametersconfigReader - This hold the FunctionExecutor extensions configuration reader.siddhiAppContext - the context of the siddhi appprotected Object execute(Object[] data)
FunctionExecutorexecute in class FunctionExecutordata - the runtime values of function parametersprotected Object execute(Object data)
FunctionExecutorexecute in class FunctionExecutordata - null if the function parameter count is zero or
runtime data value of the function parameterpublic org.wso2.siddhi.query.api.definition.Attribute.Type getReturnType()
public Map<String,Object> currentState()
Snapshotablepublic void restoreState(Map<String,Object> state)
Snapshotablestate - the stateful objects of the element as an array on
the same order provided by currentState().Copyright © 2018 WSO2. All rights reserved.