MySQL 8.3.0
Source Code Documentation
dict_field_t Struct Reference

Data structure for a field in an index. More...

#include <dict0mem.h>

Public Member Functions

 dict_field_t ()
 
uint16_t get_phy_pos () const
 

Public Attributes

dict_col_tcol
 pointer to the table column More...
 
id_name_t name
 name of the column More...
 
unsigned prefix_len: 12
 0 or the length of the column prefix in bytes in a MySQL index of type, e.g., INDEX (textcol(25)); must be smaller than DICT_MAX_FIELD_LEN_BY_FORMAT; NOTE that in the UTF-8 charset, MySQL sets this to (mbmaxlen * the prefix len) in UTF-8 chars More...
 
unsigned fixed_len: 10
 0 or the fixed length of the column if smaller than DICT_ANTELOPE_MAX_INDEX_COL_LEN More...
 
unsigned is_ascending: 1
 0=DESC, 1=ASC More...
 

Detailed Description

Data structure for a field in an index.

Constructor & Destructor Documentation

◆ dict_field_t()

dict_field_t::dict_field_t ( )
inline

Member Function Documentation

◆ get_phy_pos()

uint16_t dict_field_t::get_phy_pos ( ) const
inline

Member Data Documentation

◆ col

dict_col_t* dict_field_t::col

pointer to the table column

◆ fixed_len

unsigned dict_field_t::fixed_len

0 or the fixed length of the column if smaller than DICT_ANTELOPE_MAX_INDEX_COL_LEN

◆ is_ascending

unsigned dict_field_t::is_ascending

0=DESC, 1=ASC

◆ name

id_name_t dict_field_t::name

name of the column

◆ prefix_len

unsigned dict_field_t::prefix_len

0 or the length of the column prefix in bytes in a MySQL index of type, e.g., INDEX (textcol(25)); must be smaller than DICT_MAX_FIELD_LEN_BY_FORMAT; NOTE that in the UTF-8 charset, MySQL sets this to (mbmaxlen * the prefix len) in UTF-8 chars


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