AggregationFunction constructor
Creates a new AggregationFunction.
parameters Optional. Parameters applied to the aggregation function. Only used for functions that require them.
type The type of aggregation function, must be one of the following: "none" - no function. "percentile" - APPROX_QUANTILES() - 1 parameter numeric value "average" - AVG() "count" - COUNT() "count-distinct" - COUNT(DISTINCT) "count-distinct-approx" - APPROX_COUNT_DISTINCT() "max" - MAX() "min" - MIN() "sum" - SUM()
Implementation
const AggregationFunction({
this.parameters,
required this.type,
});