Filter.h
IntroductionUse the links in the table of contents to the left to access the documentation. Methods
container//todo cbewrap put this back -(CBEContainer*) container; DiscussionReturns the parent container that was queried, if it is in the cache. This is after a query was done, not before. getAscending-(bool) getAscending; DiscussionReturns the settings on how the data was sorted and displayed. getByPassCache-(bool) getByPassCache; DiscussionReturns if skipping the cache was used or not. getContainerFirst-(bool) getContainerFirst; Discussionif containers should be sorted before objects getCount-(uint32_t) getCount; DiscussionReturns the size of the resultset of the query. getDataType-(CBEItemType) getDataType; DiscussionReturns the requested data type. E.g., cbe::ItemType::Container, Object, Tag, ... getDeleted-(bool) getDeleted; Discussionif deleted objects in the bin are included getItemOrder-(CBEFilterOrder) getItemOrder; DiscussionReturns the order the query was sorted. Check enum \c FilterOrder to see options for sorting. getOffset-(uint32_t) getOffset; DiscussionReturns the offset of items to be skiped that was used for the filter in the query. getQuery-(NSString*) getQuery; DiscussionReturns the query NSString* that was set on the filter. \n E.g.: \n name:Abc* \n age:100 \n price<200 \n size>40 isJoinedResult-(bool) isJoinedResult; Discussionif the resultset comes from a joined query setAscending:-(void) setAscending:(bool) ascending; ParametersDiscussionSets the order, \p ascending , in which data should be displayed: setByPassCache:-(void) setByPassCache:(bool) byPassCache; ParametersDiscussionSet to skip the local SDK cache and fetch an update from the cloud. setContainerFirst:-(void) setContainerFirst:(bool) containerFirst; ParametersDiscussionIf \c Container should be displayed before \c Object setCount:-(void) setCount:(uint32_t) count; ParametersDiscussionSet the number of items you want to get from a container. \n E.g.: a container has 50 items but you only want the 10 first in ascending order then set ascending to true and setCount to 10. setDataType:-(void) setDataType:(CBEItemType) itemType; ParametersDiscussionSet which \c datatypes to query for. setDeleted:-(void) setDeleted:(bool) deleted; ParametersDiscussionShow deleted items setItemOrder:-(void) setItemOrder:(CBEFilterOrder) order; ParametersDiscussionSet the order of how data will be shown by the enum of FilterOrder E.g.: Title first, Relevance, published e.t.c. setOffset:-(void) setOffset:(uint32_t) offset; ParametersDiscussionSet the offset for paging, offset is the item offset where to start your resultset. \n E.g.: There is already a query of the first 99 items and to get the rest you put setOffset() to 100 to get the next set. setQuery:-(void) setQuery:(NSString*) query; ParametersDiscussionSet the query NSString. \n E.g.: Name:* (would search for all objects with the metadata key of Name). \n \note If used with rootContainer id as the dataId to search in, the whole account will be searched. |