AggregateValue
open class AggregateValue : TransformValue
Encapsulates an OData aggregate transformation item.
-
The list of aggregate expressions
Declaration
Swift
public final var aggregateExpressionList: AggregateExpressionList { get }
-
Declaration
Swift
override open func copyMutable() -> DataValue
Return Value
A clone of this value if it (together with all value subcomponents) is possibly mutable, or return
self
value 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 item.
Declaration
Swift
open class func count(as alias: String) -> AggregateValue
Parameters
alias
The alias for the aggregate item.
Return Value
The aggregate transformation value.
-
Creates an aggregate transformation item.
Declaration
Swift
open class func create(_ value: DataValue?, method: AggregateMethod?, alias: String?) -> AggregateValue
Parameters
value
The value to be aggregated.
method
The aggregate method to be used for aggregating.
alias
The alias for the returned result property.
Return Value
The aggregate transformation value.
-
Creates an aggregate transformation item with an AggregateExpressionList
Declaration
Swift
open class func createWithExpressionList(aggregateExpressionList: AggregateExpressionList) -> AggregateValue
Parameters
aggregateExpressionList
The list of aggregate expressions.
Return Value
The aggregate transformation value.