public class ScriptFunctionExecutor extends FunctionExecutor
attributeExpressionExecutors, functionId, processingMode, siddhiQueryContext
Constructor and Description |
---|
ScriptFunctionExecutor() |
ScriptFunctionExecutor(String name) |
Modifier and Type | Method and Description |
---|---|
protected Object |
execute(Object[] data,
State state)
The main execution method which will be called upon event arrival
when there are more then one function parameter
|
protected Object |
execute(Object data,
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() |
protected StateFactory |
init(ExpressionExecutor[] attributeExpressionExecutors,
ConfigReader configReader,
SiddhiQueryContext siddhiQueryContext)
The initialization method for FunctionExecutor, this method will be called before the other methods
|
execute, execute, execute, initExecutor
public ScriptFunctionExecutor()
public ScriptFunctionExecutor(String name)
public io.siddhi.query.api.definition.Attribute.Type getReturnType()
protected StateFactory init(ExpressionExecutor[] attributeExpressionExecutors, ConfigReader configReader, SiddhiQueryContext siddhiQueryContext)
FunctionExecutor
init
in class FunctionExecutor
attributeExpressionExecutors
- are the executors of each function parametersconfigReader
- This hold the FunctionExecutor
extensions configuration reader.siddhiQueryContext
- the context of the siddhi queryprotected Object execute(Object[] data, State state)
FunctionExecutor
execute
in class FunctionExecutor
data
- the runtime values of function parametersstate
- current query stateprotected Object execute(Object data, State state)
FunctionExecutor
execute
in class FunctionExecutor
data
- null if the function parameter count is zero or
runtime data value of the function parameterstate
- current query stateCopyright © 2019. All rights reserved.