TWSMapQueryOptions Class Reference
Inherits from | NSObject |
---|---|
Declared in | TWSMapQueryOptions.h |
Overview
Options passed while querying Map objects within Sync specifying query parameters and result set position and sorting.
startPosition
The starting position for the query.
@property (readonly, nonnull) NSString *startPosition
Discussion
The starting position for the query.
Declared In
TWSMapQueryOptions.h
queryOrder
The ordering of the query.
@property (readonly) TWSQueryOrder queryOrder
Discussion
The ordering of the query.
Declared In
TWSMapQueryOptions.h
pageSize
The maximum size of the page returned by the query.
@property (readonly) NSUInteger pageSize
Discussion
The maximum size of the page returned by the query.
Declared In
TWSMapQueryOptions.h
– withStartPosition:
Specifies the initial position of the query. Results will be inclusive of the item as this position, if specified and if it exists.
- (nonnull instancetype)withStartPosition:(nonnull NSString *)startPosition
Parameters
startPosition |
The starting map key position for the query. |
---|
Return Value
This object for optional method chaining.
Discussion
Specifies the initial position of the query. Results will be inclusive of the item as this position, if specified and if it exists.
Declared In
TWSMapQueryOptions.h
– withQueryOrder:
Specifies the ordering (i.e. direction) of the query. If no starting position is provided, ascending will execute the query from beginning and descending will execute the query from the end.
- (nonnull instancetype)withQueryOrder:(TWSQueryOrder)queryOrder
Parameters
queryOrder |
The ordering of the query. |
---|
Return Value
This object for optional method chaining.
Discussion
Specifies the ordering (i.e. direction) of the query. If no starting position is provided, ascending will execute the query from beginning and descending will execute the query from the end.
Declared In
TWSMapQueryOptions.h
– withPageSize:
Specifies the maximum size of the page returned by the query. The page may contain less items when approaching the end of collection.
- (nonnull instancetype)withPageSize:(NSUInteger)pageSize
Parameters
pageSize |
The maximum size of the page returned by the query. |
---|
Return Value
This object for optional method chaining.
Discussion
Specifies the maximum size of the page returned by the query. The page may contain less items when approaching the end of collection.
Declared In
TWSMapQueryOptions.h