MySQL 8.0.39
Source Code Documentation
rt_index.h File Reference
#include <sys/types.h>
#include "my_inttypes.h"
#include "myisam.h"

Go to the source code of this file.

Macros

#define rt_PAGE_FIRST_KEY(page, nod_flag)   (page + 2 + nod_flag)
 
#define rt_PAGE_NEXT_KEY(key, key_length, nod_flag)    (key + key_length + (nod_flag ? nod_flag : info->s->base.rec_reflength))
 
#define rt_PAGE_END(page)   (page + mi_getint(page))
 
#define rt_PAGE_MIN_SIZE(block_length)   ((uint)(block_length) / 3)
 

Functions

int rtree_insert (MI_INFO *info, uint keynr, uchar *key, uint key_length)
 
int rtree_delete (MI_INFO *info, uint keynr, uchar *key, uint key_length)
 
int rtree_find_first (MI_INFO *info, uint keynr, uchar *key, uint key_length, uint search_flag)
 
int rtree_find_next (MI_INFO *info, uint keynr, uint search_flag)
 
int rtree_get_first (MI_INFO *info, uint keynr, uint key_length)
 
int rtree_get_next (MI_INFO *info, uint keynr, uint key_length)
 
ha_rows rtree_estimate (MI_INFO *info, uint keynr, uchar *key, uint key_length, uint flag)
 
int rtree_split_page (MI_INFO *info, MI_KEYDEF *keyinfo, uchar *page, uchar *key, uint key_length, my_off_t *new_page_offs)
 

Macro Definition Documentation

◆ rt_PAGE_END

#define rt_PAGE_END (   page)    (page + mi_getint(page))

◆ rt_PAGE_FIRST_KEY

#define rt_PAGE_FIRST_KEY (   page,
  nod_flag 
)    (page + 2 + nod_flag)

◆ rt_PAGE_MIN_SIZE

#define rt_PAGE_MIN_SIZE (   block_length)    ((uint)(block_length) / 3)

◆ rt_PAGE_NEXT_KEY

#define rt_PAGE_NEXT_KEY (   key,
  key_length,
  nod_flag 
)     (key + key_length + (nod_flag ? nod_flag : info->s->base.rec_reflength))

Function Documentation

◆ rtree_delete()

int rtree_delete ( MI_INFO info,
uint  keynr,
uchar key,
uint  key_length 
)

◆ rtree_estimate()

ha_rows rtree_estimate ( MI_INFO info,
uint  keynr,
uchar key,
uint  key_length,
uint  flag 
)

◆ rtree_find_first()

int rtree_find_first ( MI_INFO info,
uint  keynr,
uchar key,
uint  key_length,
uint  search_flag 
)

◆ rtree_find_next()

int rtree_find_next ( MI_INFO info,
uint  keynr,
uint  search_flag 
)

◆ rtree_get_first()

int rtree_get_first ( MI_INFO info,
uint  keynr,
uint  key_length 
)

◆ rtree_get_next()

int rtree_get_next ( MI_INFO info,
uint  keynr,
uint  key_length 
)

◆ rtree_insert()

int rtree_insert ( MI_INFO info,
uint  keynr,
uchar key,
uint  key_length 
)

◆ rtree_split_page()

int rtree_split_page ( MI_INFO info,
MI_KEYDEF keyinfo,
uchar page,
uchar key,
uint  key_length,
my_off_t new_page_offs 
)