public class CountAttributeAggregator extends AttributeAggregator
AttributeAggregator to calculate count.attributeExpressionExecutors| Constructor and Description |
|---|
CountAttributeAggregator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDestroy() |
Map<String,Object> |
currentState() |
io.siddhi.query.api.definition.Attribute.Type |
getReturnType() |
protected void |
init(ExpressionExecutor[] attributeExpressionExecutors,
ProcessingMode processingMode,
boolean outputExpectsExpiredEvents,
ConfigReader configReader,
SiddhiQueryContext siddhiQueryContext)
The initialization method for FunctionExecutor
|
Object |
processAdd(Object data) |
Object |
processAdd(Object[] data) |
Object |
processRemove(Object data) |
Object |
processRemove(Object[] data) |
Object |
reset() |
void |
restoreState(Map<String,Object> state) |
clean, cloneAggregator, initAggregator, processprotected void init(ExpressionExecutor[] attributeExpressionExecutors, ProcessingMode processingMode, boolean outputExpectsExpiredEvents, ConfigReader configReader, SiddhiQueryContext siddhiQueryContext)
init in class AttributeAggregatorattributeExpressionExecutors - are the executors of each attributes in the functionprocessingMode - query processing modeoutputExpectsExpiredEvents - is expired events sent as outputconfigReader - this hold the CountAttributeAggregator configuration reader.siddhiQueryContext - Siddhi query runtime contextpublic io.siddhi.query.api.definition.Attribute.Type getReturnType()
getReturnType in class AttributeAggregatorpublic Object processAdd(Object data)
processAdd in class AttributeAggregatorpublic Object processAdd(Object[] data)
processAdd in class AttributeAggregatorpublic Object processRemove(Object data)
processRemove in class AttributeAggregatorpublic Object processRemove(Object[] data)
processRemove in class AttributeAggregatorpublic Object reset()
reset in class AttributeAggregatorpublic boolean canDestroy()
canDestroy in class AttributeAggregatorpublic Map<String,Object> currentState()
currentState in class AttributeAggregatorpublic void restoreState(Map<String,Object> state)
restoreState in class AttributeAggregatorCopyright © 2019. All rights reserved.