Package org.wso2.siddhi.extension.math
Class PercentileFunctionExtension
java.lang.Object
org.wso2.siddhi.core.query.selector.attribute.aggregator.AttributeAggregator
org.wso2.siddhi.extension.math.PercentileFunctionExtension
- All Implemented Interfaces:
org.wso2.siddhi.core.util.extension.holder.EternalReferencedHolder,org.wso2.siddhi.core.util.snapshot.Snapshotable
public class PercentileFunctionExtension
extends org.wso2.siddhi.core.query.selector.attribute.aggregator.AttributeAggregator
AttributeAggregator which implements the following function.
percentile(value, p)
Returns an estimate for the pth percentile of the stored values.
Accept Type(s): value: FLOAT,INT,LONG,DOUBLE / p: DOUBLE
Return Type: DOUBLE-
Field Summary
Fields inherited from class org.wso2.siddhi.core.query.selector.attribute.aggregator.AttributeAggregator
attributeExpressionExecutors, elementId, executionPlanContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]org.wso2.siddhi.query.api.definition.Attribute.Typeprotected voidinit(org.wso2.siddhi.core.executor.ExpressionExecutor[] attributeExpressionExecutors, org.wso2.siddhi.core.config.ExecutionPlanContext executionPlanContext) processAdd(Object data) processAdd(Object[] data) processRemove(Object data) processRemove(Object[] data) reset()voidrestoreState(Object[] state) voidstart()voidstop()Methods inherited from class org.wso2.siddhi.core.query.selector.attribute.aggregator.AttributeAggregator
cloneAggregator, getElementId, initAggregator, process
-
Constructor Details
-
PercentileFunctionExtension
public PercentileFunctionExtension()
-
-
Method Details
-
init
protected void init(org.wso2.siddhi.core.executor.ExpressionExecutor[] attributeExpressionExecutors, org.wso2.siddhi.core.config.ExecutionPlanContext executionPlanContext) - Specified by:
initin classorg.wso2.siddhi.core.query.selector.attribute.aggregator.AttributeAggregator
-
getReturnType
public org.wso2.siddhi.query.api.definition.Attribute.Type getReturnType()- Specified by:
getReturnTypein classorg.wso2.siddhi.core.query.selector.attribute.aggregator.AttributeAggregator
-
processAdd
- Specified by:
processAddin classorg.wso2.siddhi.core.query.selector.attribute.aggregator.AttributeAggregator
-
processAdd
- Specified by:
processAddin classorg.wso2.siddhi.core.query.selector.attribute.aggregator.AttributeAggregator
-
processRemove
- Specified by:
processRemovein classorg.wso2.siddhi.core.query.selector.attribute.aggregator.AttributeAggregator
-
processRemove
- Specified by:
processRemovein classorg.wso2.siddhi.core.query.selector.attribute.aggregator.AttributeAggregator
-
reset
- Specified by:
resetin classorg.wso2.siddhi.core.query.selector.attribute.aggregator.AttributeAggregator
-
start
public void start() -
stop
public void stop() -
currentState
-
restoreState
-