public abstract class AttributeAggregator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ExpressionExecutor[] |
attributeExpressionExecutors |
protected SiddhiAppContext |
siddhiAppContext |
| Constructor and Description |
|---|
AttributeAggregator() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
canDestroy() |
void |
clean() |
AttributeAggregator |
cloneAggregator(String key) |
abstract Map<String,Object> |
currentState() |
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,
String queryName,
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() |
abstract void |
restoreState(Map<String,Object> state) |
protected ExpressionExecutor[] attributeExpressionExecutors
protected SiddhiAppContext siddhiAppContext
public void initAggregator(ExpressionExecutor[] attributeExpressionExecutors, SiddhiAppContext siddhiAppContext, String queryName, 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 void clean()
Copyright © 2019 WSO2. All rights reserved.