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
  • 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:
      init in class org.wso2.siddhi.core.query.selector.attribute.aggregator.AttributeAggregator
    • getReturnType

      public org.wso2.siddhi.query.api.definition.Attribute.Type getReturnType()
      Specified by:
      getReturnType in class org.wso2.siddhi.core.query.selector.attribute.aggregator.AttributeAggregator
    • processAdd

      public Object processAdd(Object data)
      Specified by:
      processAdd in class org.wso2.siddhi.core.query.selector.attribute.aggregator.AttributeAggregator
    • processAdd

      public Object processAdd(Object[] data)
      Specified by:
      processAdd in class org.wso2.siddhi.core.query.selector.attribute.aggregator.AttributeAggregator
    • processRemove

      public Object processRemove(Object data)
      Specified by:
      processRemove in class org.wso2.siddhi.core.query.selector.attribute.aggregator.AttributeAggregator
    • processRemove

      public Object processRemove(Object[] data)
      Specified by:
      processRemove in class org.wso2.siddhi.core.query.selector.attribute.aggregator.AttributeAggregator
    • reset

      public Object reset()
      Specified by:
      reset in class org.wso2.siddhi.core.query.selector.attribute.aggregator.AttributeAggregator
    • start

      public void start()
    • stop

      public void stop()
    • currentState

      public Object[] currentState()
    • restoreState

      public void restoreState(Object[] state)