public abstract class FunctionExecutor extends Object implements ExpressionExecutor, EternalReferencedHolder, Snapshotable
| Modifier and Type | Field and Description |
|---|---|
protected ExpressionExecutor[] |
attributeExpressionExecutors |
protected String |
elementId |
protected ExecutionPlanContext |
executionPlanContext |
protected String |
queryName |
| 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,
ExecutionPlanContext executionPlanContext)
The initialization method for FunctionExecutor, this method will be called before the other methods
|
void |
initExecutor(ExpressionExecutor[] attributeExpressionExecutors,
ExecutionPlanContext executionPlanContext,
String queryName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReturnTypestart, stopcurrentState, restoreStateprotected ExpressionExecutor[] attributeExpressionExecutors
protected ExecutionPlanContext executionPlanContext
protected String elementId
protected String queryName
public void initExecutor(ExpressionExecutor[] attributeExpressionExecutors, ExecutionPlanContext executionPlanContext, String queryName)
public ExpressionExecutor cloneExecutor(String key)
cloneExecutor in interface ExpressionExecutorprotected abstract void init(ExpressionExecutor[] attributeExpressionExecutors, ExecutionPlanContext executionPlanContext)
attributeExpressionExecutors - are the executors of each function parametersexecutionPlanContext - the context of the execution planpublic 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.