TopTransform

open class TopTransform : AmountTransform

Represents the Top* transformation items.

  • Creates a “topcount” transformation item.

    Declaration

    Swift

    open class func count(amount: Int, value: DataValue) throws -> TopTransform

    Parameters

    amount

    The amount to be applied.

    value

    The value by which the transformation will compare the instances in the entity set.

    Return Value

    The TopTransform item.

  • Creates a “toppercent” transformation item.

    Declaration

    Swift

    open class func percent(amount: Double, value: DataValue) throws -> TopTransform

    Parameters

    amount

    The amount to be applied.

    value

    The value by which the transformation will compare the instances in the entity set.

    Return Value

    The TopTransform item.

  • Creates a “topsum” transformation item.

    Declaration

    Swift

    open class func sum(amount: Double, value: DataValue) throws -> TopTransform

    Parameters

    amount

    The amount to be applied.

    value

    The value by which the transformation will compare the instances in the entity set.

    Return Value

    The TopTransform item.