Package nz.org.riskscape.engine.rl.agg
Class PercentileAggregationFunction.Single
java.lang.Object
nz.org.riskscape.engine.rl.agg.ListCollecting
nz.org.riskscape.engine.rl.agg.PercentileAggregationFunction
nz.org.riskscape.engine.rl.agg.PercentileAggregationFunction.Single
- All Implemented Interfaces:
nz.org.riskscape.engine.rl.agg.AggregationFunction
- Enclosing class:
- PercentileAggregationFunction
A PercentileAggregationFunction
that returns a single 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.SingleFixed
Nested 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
buildResult
(Object[] results, nz.org.riskscape.engine.types.Type resultType) getPercentiles
(nz.org.riskscape.engine.rl.RealizationContext context, nz.org.riskscape.rl.ast.FunctionCall fc) protected nz.org.riskscape.engine.types.Type
getResultTypeFor
(nz.org.riskscape.engine.types.Type internalType, List<Long> percentiles) Methods inherited from class nz.org.riskscape.engine.rl.agg.PercentileAggregationFunction
buildProcessor, getArguments
Methods inherited from class nz.org.riskscape.engine.rl.agg.ListCollecting
realize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nz.org.riskscape.engine.rl.agg.AggregationFunction
getReturnType
-
Constructor Details
-
Single
public Single()
-
-
Method Details
-
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:
getPercentiles
in 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:
getResultTypeFor
in classPercentileAggregationFunction
- Throws:
nz.org.riskscape.problem.ProblemException
-
buildResult
- Overrides:
buildResult
in classPercentileAggregationFunction
-