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.

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
    Modifier and Type
    Class
    Description
    static interface 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     

    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

    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:
      realize in interface nz.org.riskscape.engine.rl.agg.AggregationFunction