MySQL 8.0.39
Source Code Documentation
rt_index.h
Go to the documentation of this file.
1/* Copyright (c) 2002, 2024, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is designed to work with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24/**
25 @file storage/myisam/rt_index.h
26*/
27
28#ifndef _rt_index_h
29#define _rt_index_h
30
31#include <sys/types.h>
32
33#include "my_inttypes.h"
34#include "myisam.h"
35
36#define rt_PAGE_FIRST_KEY(page, nod_flag) (page + 2 + nod_flag)
37#define rt_PAGE_NEXT_KEY(key, key_length, nod_flag) \
38 (key + key_length + (nod_flag ? nod_flag : info->s->base.rec_reflength))
39#define rt_PAGE_END(page) (page + mi_getint(page))
40
41#define rt_PAGE_MIN_SIZE(block_length) ((uint)(block_length) / 3)
42
43int rtree_insert(MI_INFO *info, uint keynr, uchar *key, uint key_length);
44int rtree_delete(MI_INFO *info, uint keynr, uchar *key, uint key_length);
45
46int rtree_find_first(MI_INFO *info, uint keynr, uchar *key, uint key_length,
47 uint search_flag);
48int rtree_find_next(MI_INFO *info, uint keynr, uint search_flag);
49
50int rtree_get_first(MI_INFO *info, uint keynr, uint key_length);
51int rtree_get_next(MI_INFO *info, uint keynr, uint key_length);
52
53ha_rows rtree_estimate(MI_INFO *info, uint keynr, uchar *key, uint key_length,
54 uint flag);
55
57 uint key_length, my_off_t *new_page_offs);
58
59#endif /* _rt_index_h */
int page
Definition: ctype-mb.cc:1236
static int flag
Definition: hp_test1.cc:40
my_off_t ha_rows
Definition: my_base.h:1140
Some integer typedefs for easier portability.
ulonglong my_off_t
Definition: my_inttypes.h:72
unsigned char uchar
Definition: my_inttypes.h:52
This file should be included when using myisam functions.
Log info(cout, "NOTE")
required string key
Definition: replication_asynchronous_connection_failover.proto:60
int rtree_find_next(MI_INFO *info, uint keynr, uint search_flag)
Definition: rt_index.cc:207
int rtree_split_page(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *page, uchar *key, uint key_length, my_off_t *new_page_offs)
Definition: rt_split.cc:229
int rtree_find_first(MI_INFO *info, uint keynr, uchar *key, uint key_length, uint search_flag)
Definition: rt_index.cc:157
int rtree_delete(MI_INFO *info, uint keynr, uchar *key, uint key_length)
Definition: rt_index.cc:810
int rtree_get_next(MI_INFO *info, uint keynr, uint key_length)
Definition: rt_index.cc:370
int rtree_insert(MI_INFO *info, uint keynr, uchar *key, uint key_length)
Definition: rt_index.cc:635
int rtree_get_first(MI_INFO *info, uint keynr, uint key_length)
Definition: rt_index.cc:346
ha_rows rtree_estimate(MI_INFO *info, uint keynr, uchar *key, uint key_length, uint flag)
Definition: rt_index.cc:921
Definition: myisamdef.h:252
Definition: myisam.h:174
unsigned int uint
Definition: uca9-dump.cc:75