public abstract class AttributeAggregator extends Object implements Snapshotable
| Modifier and Type | Field and Description |
|---|---|
protected ExpressionExecutor[] |
attributeExpressionExecutors |
protected String |
elementId |
protected SiddhiAppContext |
siddhiAppContext |
| Constructor and Description |
|---|
AttributeAggregator() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
canDestroy() |
AttributeAggregator |
cloneAggregator(String key) |
String |
getElementId() |
abstract org.wso2.siddhi.query.api.definition.Attribute.Type |
getReturnType() |
protected abstract void |
init(ExpressionExecutor[] attributeExpressionExecutors,
ConfigReader configReader,
SiddhiAppContext siddhiAppContext)
The initialization method for FunctionExecutor
|
void |
initAggregator(ExpressionExecutor[] attributeExpressionExecutors,
SiddhiAppContext siddhiAppContext,
ConfigReader configReader) |
Object |
process(ComplexEvent event) |
abstract Object |
processAdd(Object data) |
abstract Object |
processAdd(Object[] data) |
abstract Object |
processRemove(Object data) |
abstract Object |
processRemove(Object[] data) |
abstract Object |
reset() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcurrentState, restoreStateprotected ExpressionExecutor[] attributeExpressionExecutors
protected SiddhiAppContext siddhiAppContext
protected String elementId
public void initAggregator(ExpressionExecutor[] attributeExpressionExecutors, SiddhiAppContext siddhiAppContext, ConfigReader configReader)
public AttributeAggregator cloneAggregator(String key)
public Object process(ComplexEvent event)
protected abstract void init(ExpressionExecutor[] attributeExpressionExecutors, ConfigReader configReader, SiddhiAppContext siddhiAppContext)
attributeExpressionExecutors - are the executors of each attributes in the functionconfigReader - this hold the AttributeAggregator extensions configuration reader.siddhiAppContext - Siddhi app runtime contextpublic abstract org.wso2.siddhi.query.api.definition.Attribute.Type getReturnType()
public abstract boolean canDestroy()
public abstract Object reset()
public String getElementId()
getElementId in interface SnapshotableCopyright © 2019 WSO2. All rights reserved.