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.) - parameter: index the value index. - returns: the result value.Declaration
Objective-C
- (nullable id)valueAtIndex:(NSUInteger)index;
Parameters
index
-
The result boolean value at the given index. - parameter: index the value index. - returns: the result boolean value.
Declaration
Objective-C
- (_Bool)booleanAtIndex:(NSUInteger)index;
Parameters
index
-
The result integer value at the given index. - parameter: index the value index. - returns: the result integer value.
Declaration
Objective-C
- (NSInteger)integerAtIndex:(NSUInteger)index;
Parameters
index
-
The result float value at the given index. - parameter: index the value index. - returns: the result float value.
Declaration
Objective-C
- (float)floatAtIndex:(NSUInteger)index;
Parameters
index
-
The result double value at the given index. - parameter: index the value index. - returns: the result double value.
Declaration
Objective-C
- (double)doubleAtIndex:(NSUInteger)index;
Parameters
index
-
The result string value at the given index. - parameter: index the value index. - returns: the result string value.
Declaration
Objective-C
- (nullable NSString *)stringAtIndex:(NSUInteger)index;
Parameters
index
-
The result date value at the given index. - parameter: index the value index. - returns: the result date value.
Declaration
Objective-C
- (nullable NSDate *)dateAtIndex:(NSUInteger)index;
Parameters
index
-
The result object value at the given index. - parameter: subscript the value index. - returns: the result object value.
Declaration
Objective-C
- (nullable id)objectAtIndexedSubscript:(NSUInteger)subscript;
Parameters
subscript
-
Not Available.
Declaration
Objective-C
- (nonnull instancetype)init;