AggregateValue

open class AggregateValue : TransformValue

Encapsulates an OData aggregate transformation item.

  • The list of aggregate expressions

    Declaration

    Swift

    public final var aggregateExpressionList: AggregateExpressionList { get }
  • 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.