GroupTransform

open class GroupTransform : TransformValue, @unchecked Sendable

Represents the ‘groupby’ transformation.

  • The list of transformations to be applied for the property paths.

    Declaration

    Swift

    final public var transformValues: TransformValueList?
  • Adds new aggregate items to the tranform instance.

    Declaration

    Swift

    open func aggregate(_ items: AggregateValue...) -> GroupTransform

    Parameters

    rest_items

    The transform items to be added.

    Return Value

    The tranform instance

  • Adds new aggregate item list to the tranform instance.

    Declaration

    Swift

    open func aggregateList(items: AggregateValueList) -> GroupTransform

    Parameters

    items

    The transform items to be added.

    Return Value

    The tranform instance.

  • 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 an ‘groupby’ transformation with the given properties.

    Declaration

    Swift

    open class func groupBy(_ items: PropertyPath...) -> GroupTransform

    Parameters

    rest_items

    The properties for grouping.

    Return Value

    The created item.

  • Creates an ‘groupby’ transformation with the given properties.

    Declaration

    Swift

    open class func groupByList(items: PropertyPathList) -> GroupTransform

    Parameters

    items

    The properties for grouping.

    Return Value

    The created item.

  • The list of property paths for the group transformation.

    Declaration

    Swift

    public final var groupingPaths: PropertyPathList { get }
  • Adds new transform items to the tranform instance.

    Declaration

    Swift

    open func transform(_ items: TransformValue...) -> GroupTransform

    Parameters

    rest_items

    The transform items to be added.

    Return Value

    The transform instance.

  • Adds new transform itemlist to the tranform instance.

    Declaration

    Swift

    open func transformList(items: TransformValueList) -> GroupTransform

    Parameters

    items

    The transform items to be added.

    Return Value

    The transform instance.