drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
btr_cur_struct Struct Reference

#include <btr0cur.h>

Collaboration diagram for btr_cur_struct:
[legend]

Public Attributes

dict_index_t * index
page_cur_t page_cur
purge_node_t * purge_node
buf_block_t * left_block
que_thr_t * thr
enum btr_cur_method flag
ulint tree_height
ulint up_match
ulint up_bytes
ulint low_match
ulint low_bytes
ulint n_fields
ulint n_bytes
ulint fold
ulint ibuf_cnt
btr_path_t * path_arr

Detailed Description

The tree cursor: the definition appears here only for the compiler to know struct size!

Definition at line 686 of file btr0cur.h.

Member Data Documentation

◆ flag

enum btr_cur_method btr_cur_struct::flag

The following fields are used in btr_cur_search_to_nth_level to pass information: Search method used

Definition at line 706 of file btr0cur.h.

◆ fold

ulint btr_cur_struct::fold

fold value used in the search if flag is BTR_CUR_HASH

Definition at line 744 of file btr0cur.h.

◆ ibuf_cnt

ulint btr_cur_struct::ibuf_cnt

Definition at line 747 of file btr0cur.h.

◆ index

dict_index_t* btr_cur_struct::index

index where positioned

Definition at line 687 of file btr0cur.h.

◆ left_block

buf_block_t* btr_cur_struct::left_block

this field is used to store a pointer to the left neighbor page, in the cases BTR_SEARCH_PREV and BTR_MODIFY_PREV

Definition at line 690 of file btr0cur.h.

◆ low_bytes

ulint btr_cur_struct::low_bytes

number of matched bytes to the right at the time cursor positioned; only used internally in searches: not defined after the search

Definition at line 736 of file btr0cur.h.

◆ low_match

ulint btr_cur_struct::low_match

if search mode was PAGE_CUR_LE, the number of matched fields to the first user record AT THE CURSOR or to the left of it after btr_cur_search_to_nth_level; NOT defined for PAGE_CUR_GE or any other search modes; see also the NOTE in up_match!

Definition at line 728 of file btr0cur.h.

◆ n_bytes

ulint btr_cur_struct::n_bytes

hash prefix bytes if hash_node != NULL

Definition at line 742 of file btr0cur.h.

◆ n_fields

ulint btr_cur_struct::n_fields

prefix length used in a hash search if hash_node != NULL

Definition at line 740 of file btr0cur.h.

◆ page_cur

page_cur_t btr_cur_struct::page_cur

page cursor

Definition at line 688 of file btr0cur.h.

◆ path_arr

btr_path_t* btr_cur_struct::path_arr

in estimating the number of rows in range, we store in this array information of the path through the tree

Definition at line 765 of file btr0cur.h.

◆ purge_node

purge_node_t* btr_cur_struct::purge_node

purge node, for BTR_DELETE

Definition at line 689 of file btr0cur.h.

◆ thr

que_thr_t* btr_cur_struct::thr

this field is only used when btr_cur_search_to_nth_level is called for an index entry insertion: the calling query thread is passed here to be used in the insert buffer

Definition at line 696 of file btr0cur.h.

◆ tree_height

ulint btr_cur_struct::tree_height

Tree height if the search is done for a pessimistic insert or update operation

Definition at line 707 of file btr0cur.h.

◆ up_bytes

ulint btr_cur_struct::up_bytes

number of matched bytes to the right at the time cursor positioned; only used internally in searches: not defined after the search

Definition at line 724 of file btr0cur.h.

◆ up_match

ulint btr_cur_struct::up_match

If the search mode was PAGE_CUR_LE, the number of matched fields to the the first user record to the right of the cursor record after btr_cur_search_to_nth_level; for the mode PAGE_CUR_GE, the matched fields to the first user record AT THE CURSOR or to the right of it; NOTE that the up_match and low_match values may exceed the correct values for comparison to the adjacent user record if that record is on a different leaf page! (See the note in row_ins_duplicate_key.)

Definition at line 710 of file btr0cur.h.


The documentation for this struct was generated from the following file: