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

#include <dict0mem.h>

Collaboration diagram for dict_index_struct:
[legend]

Public Attributes

index_id_t id
mem_heap_t * heap
const char * name
const char * table_name
dict_table_t * table
unsigned space:32
unsigned page:32
unsigned type:4
unsigned trx_id_offset:10
unsigned n_user_defined_cols:10
unsigned n_uniq:10
unsigned n_def:10
unsigned n_fields:10
unsigned n_nullable:10
unsigned cached:1
unsigned to_be_dropped:1
unsigned corrupted:1
dict_field_t * fields
 indexes
btr_search_t * search_info
ib_int64_t * stat_n_diff_key_vals
ib_int64_t * stat_n_non_null_key_vals
ulint stat_index_size
ulint stat_n_leaf_pages
rw_lock_t lock
trx_id_t trx_id

Detailed Description

Data structure for an index. Most fields will be initialized to 0, NULL or FALSE in dict_mem_index_create().

Definition at line 328 of file dict0mem.h.

Member Data Documentation

◆ cached

unsigned dict_index_struct::cached

TRUE if the index object is in the dictionary cache

Definition at line 355 of file dict0mem.h.

◆ corrupted

unsigned dict_index_struct::corrupted

TRUE if the index object is corrupted

Definition at line 361 of file dict0mem.h.

◆ fields

dict_field_t* dict_index_struct::fields

array of field descriptions

Definition at line 363 of file dict0mem.h.

◆ heap

mem_heap_t* dict_index_struct::heap

memory heap

Definition at line 330 of file dict0mem.h.

◆ id

index_id_t dict_index_struct::id

id of the index

Definition at line 329 of file dict0mem.h.

◆ indexes

dict_index_struct::indexes

list of indexes of the table

Definition at line 366 of file dict0mem.h.

◆ lock

rw_lock_t dict_index_struct::lock

read-write lock protecting the upper levels of the index tree

Definition at line 391 of file dict0mem.h.

◆ n_def

unsigned dict_index_struct::n_def

number of fields defined so far

Definition at line 352 of file dict0mem.h.

◆ n_fields

unsigned dict_index_struct::n_fields

number of fields in the index

Definition at line 353 of file dict0mem.h.

◆ n_nullable

unsigned dict_index_struct::n_nullable

number of nullable fields

Definition at line 354 of file dict0mem.h.

◆ n_uniq

unsigned dict_index_struct::n_uniq

number of fields from the beginning which are enough to determine an index entry uniquely

Definition at line 349 of file dict0mem.h.

◆ n_user_defined_cols

unsigned dict_index_struct::n_user_defined_cols

number of columns the user defined to be in the index: in the internal representation we add more columns

Definition at line 345 of file dict0mem.h.

◆ name

const char* dict_index_struct::name

index name

Definition at line 331 of file dict0mem.h.

◆ page

unsigned dict_index_struct::page

index tree root page number

Definition at line 337 of file dict0mem.h.

◆ search_info

btr_search_t* dict_index_struct::search_info

info used in optimistic searches

Definition at line 367 of file dict0mem.h.

◆ space

unsigned dict_index_struct::space

space where the index tree is placed

Definition at line 335 of file dict0mem.h.

◆ stat_index_size

ulint dict_index_struct::stat_index_size

approximate index size in database pages

Definition at line 384 of file dict0mem.h.

◆ stat_n_diff_key_vals

ib_int64_t* dict_index_struct::stat_n_diff_key_vals

Statistics for query optimization approximate number of different key values for this index, for each n-column prefix where n <= dict_get_n_unique(index); we periodically calculate new estimates

Definition at line 371 of file dict0mem.h.

◆ stat_n_leaf_pages

ulint dict_index_struct::stat_n_leaf_pages

approximate number of leaf pages in the index tree

Definition at line 387 of file dict0mem.h.

◆ stat_n_non_null_key_vals

ib_int64_t* dict_index_struct::stat_n_non_null_key_vals

Definition at line 378 of file dict0mem.h.

◆ table

dict_table_t* dict_index_struct::table

back pointer to table

Definition at line 333 of file dict0mem.h.

◆ table_name

const char* dict_index_struct::table_name

table name

Definition at line 332 of file dict0mem.h.

◆ to_be_dropped

unsigned dict_index_struct::to_be_dropped

TRUE if this index is marked to be dropped in ha_innobase::prepare_drop_index(), otherwise FALSE

Definition at line 357 of file dict0mem.h.

◆ trx_id

trx_id_t dict_index_struct::trx_id

id of the transaction that created this index, or 0 if the index existed when InnoDB was started up

Definition at line 393 of file dict0mem.h.

◆ trx_id_offset

unsigned dict_index_struct::trx_id_offset

position of the trx id column in a clustered index record, if the fields before it are known to be of a fixed size, 0 otherwise

Definition at line 341 of file dict0mem.h.

◆ type

unsigned dict_index_struct::type

index type (DICT_CLUSTERED, DICT_UNIQUE, DICT_UNIVERSAL, DICT_IBUF)

Definition at line 339 of file dict0mem.h.


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