Drizzled Public API Documentation

btr_search_struct Struct Reference

#include <btr0sea.h>

Public Attributes

ulint ref_count
 
ulint n_fields
 
ulint n_bytes
 
ibool left_side
 
buf_block_troot_guess
 
ulint hash_analysis
 
ibool last_hash_succ
 
ulint n_hash_potential
 

Detailed Description

The search info struct in an index

Definition at line 207 of file btr0sea.h.

Member Data Documentation

ulint btr_search_struct::hash_analysis

when this exceeds BTR_SEARCH_HASH_ANALYSIS, the hash analysis starts; this is reset if no success noticed

Definition at line 220 of file btr0sea.h.

Referenced by btr_search_info_create().

ibool btr_search_struct::last_hash_succ

TRUE if the last search would have succeeded, or did succeed, using the hash index; NOTE that the value here is not exact: it is not calculated for every search, and the calculation itself is not always accurate!

Definition at line 224 of file btr0sea.h.

Referenced by btr_cur_search_to_nth_level(), btr_search_guess_on_hash(), and btr_search_info_create().

ibool btr_search_struct::left_side

TRUE or FALSE, depending on whether the leftmost record of several records with the same prefix should be indexed in the hash index

Definition at line 241 of file btr0sea.h.

Referenced by btr_search_info_create().

ulint btr_search_struct::n_bytes

recommended prefix: number of bytes in an incomplete field

See Also
BTR_PAGE_MAX_REC_SIZE

Definition at line 238 of file btr0sea.h.

Referenced by btr_search_guess_on_hash(), and btr_search_info_create().

ulint btr_search_struct::n_fields

recommended prefix length for hash search: number of full fields

Definition at line 236 of file btr0sea.h.

Referenced by btr_search_guess_on_hash(), and btr_search_info_create().

ulint btr_search_struct::n_hash_potential

number of consecutive searches which would have succeeded, or did succeed, using the hash index; the range is 0 .. BTR_SEARCH_BUILD_LIMIT + 5

Definition at line 229 of file btr0sea.h.

Referenced by btr_search_guess_on_hash(), and btr_search_info_create().

ulint btr_search_struct::ref_count

Number of blocks in this index tree that have search index built i.e. block->index points to this index. Protected by btr_search_latch except when during initialization in btr_search_info_create().

Definition at line 208 of file btr0sea.h.

Referenced by btr_search_drop_page_hash_index(), btr_search_info_create(), and btr_search_info_get_ref_count().

buf_block_t* btr_search_struct::root_guess

the root page frame when it was last time fetched, or NULL

Definition at line 218 of file btr0sea.h.

Referenced by btr_cur_search_to_nth_level(), and btr_search_info_create().


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