GroupBy

public struct GroupBy<O> : GroupByClause, QueryClause, Hashable where O : DynamicObject
extension GroupBy: CustomDebugStringConvertible, CoreStoreDebugStringConvertible

The GroupBy clause specifies that the result of a query be grouped accoording to the specified key path.

  • Initializes a GroupBy clause with an empty list of key path strings

    Declaration

    Swift

    public init()
  • Initializes a GroupBy clause with a list of key path strings

    Declaration

    Swift

    public init(_ keyPath: KeyPathString, _ keyPaths: KeyPathString...)

    Parameters

    keyPath

    a key path string to group results with

    keyPaths

    a series of key path strings to group results with

  • Initializes a GroupBy clause with a list of key path strings

    Declaration

    Swift

    public init(_ keyPaths: [KeyPathString])

    Parameters

    keyPaths

    a list of key path strings to group results with

GroupByClause

Equatable

  • Declaration

    Swift

    public static func == (lhs: GroupBy, rhs: GroupBy) -> Bool

Hashable

  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)

CustomDebugStringConvertible

  • Declaration

    Swift

    public var debugDescription: String { get }

Available where O: NSManagedObject

  • Initializes a GroupBy clause with a key path

    Declaration

    Swift

    public init<T>(_ keyPath: KeyPath<O, T>)

    Parameters

    keyPath

    a key path to group results with

Available where O: CoreStoreObject

  • Initializes a GroupBy clause with a key path

    Declaration

    Swift

    public init<T>(_ keyPath: KeyPath<O, FieldContainer<O>.Stored<T>>) where T : FieldStorableType

    Parameters

    keyPath

    a key path to group results with

  • Initializes a GroupBy clause with a key path

    Declaration

    Swift

    public init<T>(_ keyPath: KeyPath<O, FieldContainer<O>.Virtual<T>>)

    Parameters

    keyPath

    a key path to group results with

  • Initializes a GroupBy clause with a key path

    Declaration

    Swift

    public init<T>(_ keyPath: KeyPath<O, FieldContainer<O>.Coded<T>>)

    Parameters

    keyPath

    a key path to group results with

  • Initializes a GroupBy clause with a key path

    Declaration

    Swift

    public init<T>(_ keyPath: KeyPath<O, ValueContainer<O>.Required<T>>) where T : ImportableAttributeType

    Parameters

    keyPath

    a key path to group results with

  • Initializes a GroupBy clause with a key path

    Declaration

    Swift

    public init<T>(_ keyPath: KeyPath<O, ValueContainer<O>.Optional<T>>) where T : ImportableAttributeType

    Parameters

    keyPath

    a key path to group results with

  • Initializes a GroupBy clause with a key path

    Declaration

    Swift

    public init<T>(_ keyPath: KeyPath<O, TransformableContainer<O>.Required<T>>) where T : NSCoding, T : NSCopying

    Parameters

    keyPath

    a key path to group results with

  • Initializes a GroupBy clause with a key path

    Declaration

    Swift

    public init<T>(_ keyPath: KeyPath<O, TransformableContainer<O>.Optional<T>>) where T : NSCoding, T : NSCopying

    Parameters

    keyPath

    a key path to group results with