CBLQueryRow

@interface CBLQueryRow : NSObject

A single result from a CBLQuery. The NSEnumeration returned by -[CBLQuery run:] produces these.

  • The ID of the document that produced this row. This will be nil if the query uses aggregate functions, since it will then be composed of aggregate data from multiple rows.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull documentID;
  • The sequence number of the document revision that produced this row. This will be 0 if the query uses aggregate functions, since it will then be composed of aggregate data from multiple rows.

    Declaration

    Objective-C

    @property (readonly, nonatomic) uint64_t sequence;
  • The document that produced this row. This will be nil if the query uses aggregate functions, since it will then be composed of aggregate data from multiple rows.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CBLDocument *_Nonnull document;
  • The number of values in this row (if the query has a returning specification.)

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSUInteger valueCount;
  • The result value at the given index (if the query has a returning specification.)

    Declaration

    Objective-C

    - (nullable id)valueAtIndex:(NSUInteger)index;

    Parameters

    index

    The value index.

    Return Value

    The result value.

  • The result boolean value at the given index.

    Declaration

    Objective-C

    - (_Bool)booleanAtIndex:(NSUInteger)index;

    Parameters

    index

    The value index.

    Return Value

    The result boolean value.

  • The result integer value at the given index.

    Declaration

    Objective-C

    - (NSInteger)integerAtIndex:(NSUInteger)index;

    Parameters

    index

    The value index.

    Return Value

    The result integer value.

  • The result long long value at the given index.

    Declaration

    Objective-C

    - (long long)longLongAtIndex:(NSUInteger)index;

    Parameters

    index

    The value index.

    Return Value

    The result long long value.

  • The result float value at the given index.

    Declaration

    Objective-C

    - (float)floatAtIndex:(NSUInteger)index;

    Parameters

    index

    The value index.

    Return Value

    The result float value.

  • The result double value at the given index.

    Declaration

    Objective-C

    - (double)doubleAtIndex:(NSUInteger)index;

    Parameters

    index

    The value index.

    Return Value

    The result double value.

  • The result string value at the given index.

    Declaration

    Objective-C

    - (nullable NSString *)stringAtIndex:(NSUInteger)index;

    Parameters

    index

    The value index.

    Return Value

    The result string value.

  • The result date value at the given index.

    Declaration

    Objective-C

    - (nullable NSDate *)dateAtIndex:(NSUInteger)index;

    Parameters

    index

    The value index.

    Return Value

    The result date value.

  • The result object value at the given index.

    Declaration

    Objective-C

    - (nullable id)objectAtIndexedSubscript:(NSUInteger)subscript;

    Parameters

    subscript

    The value index.

    Return Value

    The result object value.

  • Not Available.

    Declaration

    Objective-C

    - (nonnull instancetype)init;