Package nz.org.riskscape.engine.function
Class CompositeAggregationFunction
java.lang.Object
nz.org.riskscape.engine.function.CompositeAggregationFunction
- All Implemented Interfaces:
nz.org.riskscape.engine.rl.agg.AggregationFunction
public class CompositeAggregationFunction
extends Object
implements nz.org.riskscape.engine.rl.agg.AggregationFunction
An AggregationFunction that is composed of one or more child AggregationFunction. Built primarily
for the wizard so that it can apply aggregation functions to a struct to workaround a nullability issue that exists
if you tried to apply the aggregation to the whole struct.
Expected to be used for aggregating multiple attributes of a Struct but can also be used
to aggregate a simple value with multiple aggregations.
In either case a Struct is produced.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.rl.agg.RealizedAggregateExpression>realize(nz.org.riskscape.engine.rl.RealizationContext context, nz.org.riskscape.engine.types.Type inputType, nz.org.riskscape.rl.ast.FunctionCall fc) Methods 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
getArguments, getReturnType
-
Constructor Details
-
CompositeAggregationFunction
public CompositeAggregationFunction()
-
-
Method Details
-
realize
public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.rl.agg.RealizedAggregateExpression> realize(nz.org.riskscape.engine.rl.RealizationContext context, nz.org.riskscape.engine.types.Type inputType, nz.org.riskscape.rl.ast.FunctionCall fc) - Specified by:
realizein interfacenz.org.riskscape.engine.rl.agg.AggregationFunction
-