public abstract class FunctionExecutor extends Object implements ExpressionExecutor, Snapshotable
| Modifier and Type | Field and Description |
|---|---|
protected ExpressionExecutor[] |
attributeExpressionExecutors |
protected String |
elementId |
protected String |
functionId |
protected String |
queryName |
protected SiddhiAppContext |
siddhiAppContext |
| Constructor and Description |
|---|
FunctionExecutor() |
| Modifier and Type | Method and Description |
|---|---|
ExpressionExecutor |
cloneExecutor(String key) |
Object |
execute(ComplexEvent event)
The main execution method which will be called upon event arrival
|
protected abstract Object |
execute(Object data)
The main execution method which will be called upon event arrival
when there are zero or one function parameter
|
protected abstract Object |
execute(Object[] data)
The main execution method which will be called upon event arrival
when there are more then one function parameter
|
String |
getElementId() |
protected abstract void |
init(ExpressionExecutor[] attributeExpressionExecutors,
ConfigReader configReader,
SiddhiAppContext siddhiAppContext)
The initialization method for FunctionExecutor, this method will be called before the other methods
|
void |
initExecutor(ExpressionExecutor[] attributeExpressionExecutors,
SiddhiAppContext siddhiAppContext,
String queryName,
ConfigReader configReader) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReturnTypecurrentState, restoreStateprotected ExpressionExecutor[] attributeExpressionExecutors
protected SiddhiAppContext siddhiAppContext
protected String elementId
protected String functionId
protected String queryName
public void initExecutor(ExpressionExecutor[] attributeExpressionExecutors, SiddhiAppContext siddhiAppContext, String queryName, ConfigReader configReader)
public ExpressionExecutor cloneExecutor(String key)
cloneExecutor in interface ExpressionExecutorprotected abstract void init(ExpressionExecutor[] attributeExpressionExecutors, ConfigReader configReader, SiddhiAppContext siddhiAppContext)
attributeExpressionExecutors - are the executors of each function parametersconfigReader - This hold the FunctionExecutor extensions configuration reader.siddhiAppContext - the context of the siddhi apppublic Object execute(ComplexEvent event)
execute in interface ExpressionExecutorevent - the event to be executedprotected abstract Object execute(Object[] data)
data - the runtime values of function parametersprotected abstract Object execute(Object data)
data - null if the function parameter count is zero or
runtime data value of the function parameterpublic String getElementId()
getElementId in interface SnapshotableCopyright © 2018 WSO2. All rights reserved.