public class StddevAttributeAggregator extends AttributeAggregator
attributeExpressionExecutors, elementId, executionPlanContext| Constructor and Description |
|---|
StddevAttributeAggregator() |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
currentState()
Used to collect the serializable state of the processing element, that need to be
persisted for the reconstructing the element to the same state on a different point of time
|
org.wso2.siddhi.query.api.definition.Attribute.Type |
getReturnType() |
protected void |
init(ExpressionExecutor[] attributeExpressionExecutors,
ExecutionPlanContext executionPlanContext)
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(Object[] state)
Used to restore serialized state of the processing element, for reconstructing
the element to the same state as if was on a previous point of time.
|
void |
start()
This will be called only once and this can be used to acquire
required resources for the processing element.
|
void |
stop()
This will be called only once and this can be used to release
the acquired resources for processing.
|
cloneAggregator, getElementId, initAggregator, processprotected void init(ExpressionExecutor[] attributeExpressionExecutors, ExecutionPlanContext executionPlanContext)
init in class AttributeAggregatorattributeExpressionExecutors - are the executors of each attributes in the functionexecutionPlanContext - Execution plan runtime contextpublic org.wso2.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 Object[] currentState()
Snapshotablepublic void start()
EternalReferencedHolderpublic void stop()
EternalReferencedHolderpublic void restoreState(Object[] state)
Snapshotablestate - the stateful objects of the element as an array on
the same order provided by currentState().Copyright © 2018 WSO2. All Rights Reserved.