public class GetCityResolverFunction
extends io.siddhi.core.executor.function.FunctionExecutor<io.siddhi.core.util.snapshot.state.State>
Constructor and Description |
---|
GetCityResolverFunction() |
Modifier and Type | Method and Description |
---|---|
protected Object |
execute(Object[] data,
io.siddhi.core.util.snapshot.state.State state)
The main execution method which will be called upon event arrival
when there are more than one Function parameter
|
protected Object |
execute(Object data,
io.siddhi.core.util.snapshot.state.State state)
The main execution method which will be called upon event arrival
when there are zero or one Function parameter
|
io.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 io.siddhi.core.util.snapshot.state.StateFactory<io.siddhi.core.util.snapshot.state.State> |
init(io.siddhi.core.executor.ExpressionExecutor[] attributeExpressionExecutors,
io.siddhi.core.util.config.ConfigReader configReader,
io.siddhi.core.config.SiddhiQueryContext siddhiQueryContext)
The initialization method for
FunctionExecutor , which will be called before other methods and validate
the all configuration and getting the initial values. |
protected io.siddhi.core.util.snapshot.state.StateFactory<io.siddhi.core.util.snapshot.state.State> init(io.siddhi.core.executor.ExpressionExecutor[] attributeExpressionExecutors, io.siddhi.core.util.config.ConfigReader configReader, io.siddhi.core.config.SiddhiQueryContext siddhiQueryContext)
FunctionExecutor
, which will be called before other methods and validate
the all configuration and getting the initial values.init
in class io.siddhi.core.executor.function.FunctionExecutor<io.siddhi.core.util.snapshot.state.State>
attributeExpressionExecutors
- are the executors of each attributes in the FunctionconfigReader
- this hold the FunctionExecutor
extensions configuration reader.siddhiQueryContext
- current Siddhi query contextprotected Object execute(Object[] data, io.siddhi.core.util.snapshot.state.State state)
execute
in class io.siddhi.core.executor.function.FunctionExecutor<io.siddhi.core.util.snapshot.state.State>
data
- the runtime values of Function parametersprotected Object execute(Object data, io.siddhi.core.util.snapshot.state.State state)
execute
in class io.siddhi.core.executor.function.FunctionExecutor<io.siddhi.core.util.snapshot.state.State>
data
- null if the Function parameter count is zero or
runtime data value of the Function parameterpublic io.siddhi.query.api.definition.Attribute.Type getReturnType()
Copyright © 2019 WSO2. All rights reserved.