public class GetCityResolverFunction
extends org.wso2.siddhi.core.executor.function.FunctionExecutor
Constructor and Description |
---|
GetCityResolverFunction() |
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 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 than one Function parameter
|
org.wso2.siddhi.query.api.definition.Attribute.Type |
getReturnType()
return a Class object that represents the formal return type of the method represented by this Method object.
|
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 , which will be called before other methods and validate
the all configuration and getting the initial values. |
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)
FunctionExecutor
, which will be called before other methods and validate
the all configuration and getting the initial values.init
in class org.wso2.siddhi.core.executor.function.FunctionExecutor
attributeExpressionExecutors
- are the executors of each attributes in the FunctionconfigReader
- this hold the FunctionExecutor
extensions configuration reader.siddhiAppContext
- Siddhi app runtime contextprotected Object execute(Object[] data)
execute
in class org.wso2.siddhi.core.executor.function.FunctionExecutor
data
- the runtime values of Function parametersprotected Object execute(Object data)
execute
in class org.wso2.siddhi.core.executor.function.FunctionExecutor
data
- 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 processing element as a map.
This is the same map that is created upon calling currentState() method.Copyright © 2019 WSO2. All rights reserved.