YapDatabaseRTreeIndexHandler

@interface YapDatabaseRTreeIndexHandler : NSObject

The handler block handles extracting the column values for the rtree index.

When you add or update rows in the databse the block is invoked. Your block can inspect the row and determine if it contains any values that should be added to the rtree index. If not, the block can simply return. Otherwise the block should add a min and max value (can be equal) for each indexed dimension to the given dictionary.

After the block returns, the dictionary parameter will be inspected, and any set values will be automatically inserted/updated within the sqlite index.

You should choose a block type that takes the minimum number of required parameters. The extension can make various optimizations based on required parameters of the block. For example, if metadata isn’t required, then the extension can ignore metadata-only updates.