S
- current state for the Function Executorpublic abstract class FunctionExecutor<S extends State> extends Object implements ExpressionExecutor
Modifier and Type | Field and Description |
---|---|
protected ExpressionExecutor[] |
attributeExpressionExecutors |
protected String |
functionId |
protected ProcessingMode |
processingMode |
protected SiddhiQueryContext |
siddhiQueryContext |
Constructor and Description |
---|
FunctionExecutor() |
Modifier and Type | Method and Description |
---|---|
Object |
execute(ComplexEvent event)
The main execution method which will be called upon event arrival
|
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
|
protected abstract Object |
execute(Object[] data,
S state)
The main execution method which will be called upon event arrival
when there are more then one function parameter
|
protected abstract Object |
execute(Object data,
S state)
The main execution method which will be called upon event arrival
when there are zero or one function parameter
|
protected abstract StateFactory<S> |
init(ExpressionExecutor[] attributeExpressionExecutors,
ConfigReader configReader,
SiddhiQueryContext siddhiQueryContext)
The initialization method for FunctionExecutor, this method will be called before the other methods
|
void |
initExecutor(ExpressionExecutor[] attributeExpressionExecutors,
ProcessingMode processingMode,
ConfigReader configReader,
boolean groupBy,
SiddhiQueryContext siddhiQueryContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getReturnType
protected ExpressionExecutor[] attributeExpressionExecutors
protected SiddhiQueryContext siddhiQueryContext
protected String functionId
protected ProcessingMode processingMode
public void initExecutor(ExpressionExecutor[] attributeExpressionExecutors, ProcessingMode processingMode, ConfigReader configReader, boolean groupBy, SiddhiQueryContext siddhiQueryContext)
protected abstract StateFactory<S> init(ExpressionExecutor[] attributeExpressionExecutors, ConfigReader configReader, SiddhiQueryContext siddhiQueryContext)
attributeExpressionExecutors
- are the executors of each function parametersconfigReader
- This hold the FunctionExecutor
extensions configuration reader.siddhiQueryContext
- the context of the siddhi querypublic Object execute(ComplexEvent event)
execute
in interface ExpressionExecutor
event
- the event to be executedprotected Object execute(Object[] data)
data
- the runtime values of function parametersprotected Object execute(Object data)
data
- null if the function parameter count is zero or
runtime data value of the function parameterprotected abstract Object execute(Object[] data, S state)
data
- the runtime values of function parametersstate
- current query stateprotected abstract Object execute(Object data, S state)
data
- null if the function parameter count is zero or
runtime data value of the function parameterstate
- current query stateCopyright © 2021. All rights reserved.