19 #ifdef HAVE_RTREE_KEYS
21 #define rt_PAGE_FIRST_KEY(page, nod_flag) (page + 2 + nod_flag)
22 #define rt_PAGE_NEXT_KEY(key, key_length, nod_flag) (key + key_length + \
23 (nod_flag ? nod_flag : info->s->base.rec_reflength))
24 #define rt_PAGE_END(page) (page + mi_getint(page))
26 #define rt_PAGE_MIN_SIZE(block_length) ((uint)(block_length) / 3)
28 int rtree_insert(
MI_INFO *info, uint keynr, uchar *key, uint key_length);
29 int rtree_delete(
MI_INFO *info, uint keynr, uchar *key, uint key_length);
31 int rtree_find_first(
MI_INFO *info, uint keynr, uchar *key, uint key_length,
33 int rtree_find_next(
MI_INFO *info, uint keynr, uint search_flag);
35 int rtree_get_first(
MI_INFO *info, uint keynr, uint key_length);
36 int rtree_get_next(
MI_INFO *info, uint keynr, uint key_length);
38 ha_rows rtree_estimate(
MI_INFO *info, uint keynr, uchar *key,
39 uint key_length, uint flag);
42 uint key_length, my_off_t *new_page_offs);