FilteredView
-
Undocumented
See moreDeclaration
Objective-C
@interface YapDatabaseFilteredView : YapDatabaseView
Swift
class YapDatabaseFilteredView : YapDatabaseView
-
Undocumented
See moreDeclaration
Objective-C
@interface YapDatabaseFilteredViewConnection : YapDatabaseViewConnection // Returns properly typed parent view instance @property (nonatomic, strong, readonly) YapDatabaseFilteredView *filteredView; @end
Swift
class YapDatabaseFilteredViewConnection : YapDatabaseViewConnection
-
Undocumented
See moreDeclaration
Objective-C
@interface YapDatabaseFilteredViewTransaction : YapDatabaseViewTransaction // This class extends YapDatabaseViewTransaction. // // Please see YapDatabaseViewTransaction.h @end
Swift
class YapDatabaseFilteredViewTransaction : YapDatabaseViewTransaction
-
The filtering block removes items from this view that are in the parent view.
A YapDatabaseFilteredView will have the same groups and same sort order as the parent, with the exception of those groups/rows that the filter block returned NO for.
Here’s how it works: When you initialize a YapDatabaseFilteredView instance, it will enumerate the parentView and invoke the filter block for every row in every group. So it can quickly copy a parentView as it doesn’t have to perform any sorting.
After its initialization, the filterView will automatically run for inserted / updated rows after the parentView has processed them. It then gets the group from parentView, and invokes the filterBlock again (if needed).
You should choose a block type that takes the minimum number of required parameters. The filterView can make various optimizations based on required parameters of the block.
See moreDeclaration
Objective-C
@interface YapDatabaseViewFiltering : NSObject
Swift
class YapDatabaseViewFiltering : NSObject