AggregateFunction
public class AggregateFunction : AggregateBridgeWrapper, @unchecked SendableRepresents an aggregate function in a pipeline.
An AggregateFunction is a function that computes a single value from a set of input values.
AggregateFunctions are typically used in the aggregate stage of a pipeline.
-
Creates a new
AggregateFunction.Declaration
Swift
public init(functionName: String, args: [Expression])Parameters
functionNameThe name of the aggregate function.
argsThe arguments to the aggregate function.
-
Creates an
AliasedAggregatefrom this aggregate function.Declaration
Swift
public func `as`(_ name: String) -> AliasedAggregateParameters
nameThe alias for the aggregate function.
Return Value
An
AliasedAggregatewith the given alias.