AggregateValue
open class AggregateValue : TransformValue, @unchecked Sendable
Encapsulates an OData aggregate transformation.
-
The list of aggregate expressions
Declaration
Swift
public final var aggregateExpressionList: AggregateExpressionList { get } -
Declaration
Swift
override open func copyMutable() -> DataValueReturn Value
A clone of this value if it (together with all value subcomponents) is possibly mutable, or return
selfvalue if it (together with all value subcomponents) is definitely immutable. The resulting value might share mutable metadata with this query. -
Creates a $count aggregate transformation.
Declaration
Swift
open class func count(as alias: String) -> AggregateValueParameters
aliasThe alias for the aggregate item.
Return Value
The aggregate transformation value.
-
Creates an aggregate transformation.
Declaration
Swift
open class func create(_ value: DataValue?, method: AggregateMethod?, alias: String?) -> AggregateValueParameters
valueThe value to be aggregated.
methodThe aggregate method to be used for aggregating.
aliasThe alias for the returned result property.
Return Value
The aggregate transformation value.
-
Creates an aggregate transformation with an AggregateExpressionList
Declaration
Swift
open class func createWithExpressionList(aggregateExpressionList: AggregateExpressionList) -> AggregateValueParameters
aggregateExpressionListThe list of aggregate expressions.
Return Value
The aggregate transformation value.