MySQL 8.0.40
Source Code Documentation
|
The r-tree define from MyISAM. More...
Go to the source code of this file.
Classes | |
struct | rtr_split_node_t |
Namespaces | |
namespace | dd |
The version of the current data dictionary table definitions. | |
Functions | |
static double * | reserve_coords (double **d_buffer, int n_dim) |
Inline function for reserving coords. More... | |
int | split_rtree_node (rtr_split_node_t *node, int n_entries, int all_size, int key_size, int min_size, int size1, int size2, double **d_buffer, int n_dim, uchar *first_rec, const dd::Spatial_reference_system *srs) |
Split rtree nodes. More... | |
bool | rtree_key_cmp (page_cur_mode_t mode, const uchar *a, int a_len, const uchar *b, int b_len, const dd::Spatial_reference_system *srs) |
Compares two keys a and b depending on mode mode can contain these flags: PAGE_CUR_INTERSECT a intersects b PAGE_CUR_CONTAIN a contains b PAGE_CUR_DISJOINT a disjoint b PAGE_CUR_WITHIN a within b PAGE_CUR_MBR_EQUAL All coordinates of MBRs are equal. More... | |
Variables | |
constexpr uint32_t | SPLEN = 8 |
The r-tree define from MyISAM.
|
inlinestatic |
Inline function for reserving coords.
d_buffer | in/out: buffer. |
n_dim | in: dimensions. |
bool rtree_key_cmp | ( | page_cur_mode_t | mode, |
const uchar * | a, | ||
int | a_len, | ||
const uchar * | b, | ||
int | b_len, | ||
const dd::Spatial_reference_system * | srs | ||
) |
Compares two keys a and b depending on mode mode can contain these flags: PAGE_CUR_INTERSECT a intersects b PAGE_CUR_CONTAIN a contains b PAGE_CUR_DISJOINT a disjoint b PAGE_CUR_WITHIN a within b PAGE_CUR_MBR_EQUAL All coordinates of MBRs are equal.
[in] | mode | compare method |
[in] | a | first key |
[in] | a_len | first key len |
[in] | b | second key |
[in] | b_len | second_key_len |
[in] | srs | Spatial reference system of R-tree |
true | if the predicate is true, otherwise false. |
int split_rtree_node | ( | rtr_split_node_t * | node, |
int | n_entries, | ||
int | all_size, | ||
int | key_size, | ||
int | min_size, | ||
int | size1, | ||
int | size2, | ||
double ** | d_buffer, | ||
int | n_dim, | ||
uchar * | first_rec, | ||
const dd::Spatial_reference_system * | srs | ||
) |
Split rtree nodes.
Return which group the first rec is in.
in: SRS of R-tree
Split rtree nodes.
Return which group the first rec is in.
node | in: split nodes. |
n_entries | in: entries number. |
all_size | in: total key's size. |
key_size | in: key's size. |
min_size | in: minimal group size. |
size1 | in: size of group. |
size2 | in: initial group sizes |
d_buffer | in/out: buffer. |
n_dim | in: dimensions. |
first_rec | in: the first rec. |
srs | in: SRS of R-tree |
|
constexpr |