public class CustomFunctionExtension
extends org.wso2.siddhi.core.executor.function.FunctionExecutor
| Constructor and Description |
|---|
CustomFunctionExtension() |
| 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(org.wso2.siddhi.core.executor.ExpressionExecutor[] attributeExpressionExecutors,
org.wso2.siddhi.core.util.config.ConfigReader configReader,
org.wso2.siddhi.core.config.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.
|
protected void init(org.wso2.siddhi.core.executor.ExpressionExecutor[] attributeExpressionExecutors,
org.wso2.siddhi.core.util.config.ConfigReader configReader,
org.wso2.siddhi.core.config.SiddhiAppContext siddhiAppContext)
init in class org.wso2.siddhi.core.executor.function.FunctionExecutorattributeExpressionExecutors - are the executors of each function parametersconfigReader - siddhiAppContext - the context of the siddhi appprotected Object execute(Object[] data)
execute in class org.wso2.siddhi.core.executor.function.FunctionExecutordata - the runtime values of function parametersprotected Object execute(Object data)
execute in class org.wso2.siddhi.core.executor.function.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()
public void restoreState(Map<String,Object> state)
state - the stateful objects of the element as an array on
the same order provided by currentState().Copyright © 2017 WSO2. All rights reserved.