AggregateExpression
open class AggregateExpression : ObjectBase
Encapsulates an OData aggregate expression item.
-
Default initializer.
Declaration
Swift
override public init() -
The items in the “from” clause of the aggregate item.
Declaration
Swift
@inline(__always) public final var aggregateFromList: AggregateFromList { get } -
The alias of the aggregate transformation item.
Declaration
Swift
@inline(__always) public final var alias: String? { get } -
Creates a $count aggregate expression item.
Declaration
Swift
open class func count(alias: String) throws -> AggregateExpressionParameters
aliasThe alias for the aggregate item.
Return Value
The aggregate transformation value.
-
Creates an aggregate expression item.
Declaration
Swift
open class func create(_ value: DataValue?, method: AggregateMethod?, alias: String?) throws -> AggregateExpressionParameters
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 expression item.
Declaration
Swift
open class func createWithNavigationPath(_ value: DataValue?, method: AggregateMethod?, alias: String?, navigationPath: PropertyPath?) throws -> AggregateExpressionParameters
valueThe value to be aggregated.
methodThe aggregate method to be used for aggregating.
aliasThe alias for the returned result property.
navigationPathThe path of the related entities to apply the aggregate transformation on.
Return Value
The aggregate transformation value.
-
Adds a ‘from’ clause to the aggregate expression.
Declaration
Swift
open func from(_ propertyPath: PropertyPath, method: AggregateMethod?) throws -> AggregateExpressionParameters
propertyPathThe property path for the ‘from’ clause.
methodThe aggregate method for the ‘from’ clause.
Return Value
The aggregate expression value.
-
True if the aggregate transformation item represents a $count item.
Declaration
Swift
@inline(__always) public final var isCount: Bool { get } -
The method of the aggregate transformation item.
Declaration
Swift
@inline(__always) public final var method: AggregateMethod? { get } -
The navigation path to be applied for the aggregate expression. All the paths will be evaluated relative to this path.
Declaration
Swift
@inline(__always) public final var navigationPath: PropertyPath? { get } -
The value of the aggregate transformation item.
Declaration
Swift
@inline(__always) public final var value: DataValue? { get }