Package nz.org.riskscape.engine.rl.agg
Class PercentileAggregationFunction.SingleFixed
java.lang.Object
nz.org.riskscape.engine.rl.agg.ListCollecting
nz.org.riskscape.engine.rl.agg.PercentileAggregationFunction
nz.org.riskscape.engine.rl.agg.PercentileAggregationFunction.SingleFixed
- All Implemented Interfaces:
nz.org.riskscape.engine.rl.agg.AggregationFunction
- Enclosing class:
- PercentileAggregationFunction
A PercentileAggregationFunction that returns a single predefined percentile. The return
type matches the input type as there is no need to wrap the result in a struct
-
Nested Class Summary
Nested classes/interfaces inherited from class nz.org.riskscape.engine.rl.agg.PercentileAggregationFunction
PercentileAggregationFunction.LocalProblems, PercentileAggregationFunction.Single, PercentileAggregationFunction.SingleFixedNested classes/interfaces inherited from class nz.org.riskscape.engine.rl.agg.ListCollecting
ListCollecting.ListProcessor -
Field Summary
Fields inherited from class nz.org.riskscape.engine.rl.agg.PercentileAggregationFunction
PERCENTILE_TYPE, PERCENTILES_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectbuildResult(Object[] results, nz.org.riskscape.engine.types.Type resultType) nz.org.riskscape.engine.function.ArgumentListgetPercentiles(nz.org.riskscape.engine.rl.RealizationContext context, nz.org.riskscape.rl.ast.FunctionCall fc) protected nz.org.riskscape.engine.types.TypegetResultTypeFor(nz.org.riskscape.engine.types.Type internalType, List<Long> percentiles) Methods inherited from class nz.org.riskscape.engine.rl.agg.PercentileAggregationFunction
buildProcessorMethods inherited from class nz.org.riskscape.engine.rl.agg.ListCollecting
realizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nz.org.riskscape.engine.rl.agg.AggregationFunction
getReturnType
-
Constructor Details
-
SingleFixed
-
-
Method Details
-
getArguments
public nz.org.riskscape.engine.function.ArgumentList getArguments()- Specified by:
getArgumentsin interfacenz.org.riskscape.engine.rl.agg.AggregationFunction- Overrides:
getArgumentsin classPercentileAggregationFunction
-
getPercentiles
protected List<Long> getPercentiles(nz.org.riskscape.engine.rl.RealizationContext context, nz.org.riskscape.rl.ast.FunctionCall fc) throws nz.org.riskscape.problem.ProblemException - Overrides:
getPercentilesin classPercentileAggregationFunction- Returns:
- list of percentiles that need to be found.
- Throws:
nz.org.riskscape.problem.ProblemException
-
getResultTypeFor
protected nz.org.riskscape.engine.types.Type getResultTypeFor(nz.org.riskscape.engine.types.Type internalType, List<Long> percentiles) throws nz.org.riskscape.problem.ProblemException - Overrides:
getResultTypeForin classPercentileAggregationFunction- Throws:
nz.org.riskscape.problem.ProblemException
-
buildResult
- Overrides:
buildResultin classPercentileAggregationFunction
-