Class AttributeAggregatorExecutor<S extends State>
- java.lang.Object
-
- io.siddhi.core.query.selector.attribute.aggregator.AttributeAggregatorExecutor<S>
-
- Type Parameters:
S- current state for the Attribute Executor
- All Implemented Interfaces:
ExpressionExecutor,Serializable
- Direct Known Subclasses:
AndAttributeAggregatorExecutor,AvgAttributeAggregatorExecutor,CountAttributeAggregatorExecutor,DistinctCountAttributeAggregatorExecutor,MaxAttributeAggregatorExecutor,MaxForeverAttributeAggregatorExecutor,MinAttributeAggregatorExecutor,MinForeverAttributeAggregatorExecutor,OrAttributeAggregatorExecutor,StdDevAttributeAggregatorExecutor,SumAttributeAggregatorExecutor,UnionSetAttributeAggregatorExecutor
public abstract class AttributeAggregatorExecutor<S extends State> extends Object implements ExpressionExecutor
Abstract parent class for attribute aggregators. Attribute aggregators are used to perform aggregate operations such as count, average, etc.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ExpressionExecutor[]attributeExpressionExecutors
-
Constructor Summary
Constructors Constructor Description AttributeAggregatorExecutor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Objectexecute(ComplexEvent event)protected abstract StateFactory<S>init(ExpressionExecutor[] attributeExpressionExecutors, ProcessingMode processingMode, boolean outputExpectsExpiredEvents, ConfigReader configReader, SiddhiQueryContext siddhiQueryContext)The initialization method for FunctionExecutorvoidinitAggregator(ExpressionExecutor[] attributeExpressionExecutors, ProcessingMode processingMode, boolean outputExpectsExpiredEvents, ConfigReader configReader, boolean groupBy, SiddhiQueryContext siddhiQueryContext)abstract ObjectprocessAdd(Object[] data, S state)abstract ObjectprocessAdd(Object data, S state)abstract ObjectprocessRemove(Object[] data, S state)abstract ObjectprocessRemove(Object data, S state)abstract Objectreset(S state)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.siddhi.core.executor.ExpressionExecutor
getReturnType
-
-
-
-
Field Detail
-
attributeExpressionExecutors
protected ExpressionExecutor[] attributeExpressionExecutors
-
-
Method Detail
-
initAggregator
public void initAggregator(ExpressionExecutor[] attributeExpressionExecutors, ProcessingMode processingMode, boolean outputExpectsExpiredEvents, ConfigReader configReader, boolean groupBy, SiddhiQueryContext siddhiQueryContext)
-
execute
public Object execute(ComplexEvent event)
- Specified by:
executein interfaceExpressionExecutor
-
init
protected abstract StateFactory<S> init(ExpressionExecutor[] attributeExpressionExecutors, ProcessingMode processingMode, boolean outputExpectsExpiredEvents, ConfigReader configReader, SiddhiQueryContext siddhiQueryContext)
The initialization method for FunctionExecutor- Parameters:
attributeExpressionExecutors- are the executors of each attributes in the functionprocessingMode- query processing modeoutputExpectsExpiredEvents- is expired events sent as outputconfigReader- this hold theAttributeAggregatorExecutorextensions configuration reader.siddhiQueryContext- Siddhi query runtime context
-
-