MySQL 9.1.0
Source Code Documentation
Column_meta Struct Reference

Column metadata information. More...

#include <bulk_data_service.h>

Public Types

enum class  Compare { INTEGER_SIGNED , INTEGER_UNSIGNED , BINARY , MYSQL }
 Data comparison method. More...
 

Public Member Functions

bool is_integer () const
 
bool can_be_stored_externally () const
 Based on the column data type check if it can be stored externally. More...
 
std::ostream & print (std::ostream &out) const
 Print this object into the given output stream. More...
 
std::string get_type_string () const
 

Public Attributes

enum_field_types m_type
 Field type. More...
 
bool m_is_nullable
 If column could be NULL. More...
 
bool m_is_key
 If column is part of primary key. More...
 
bool m_is_desc_key
 If the key is descending. More...
 
bool m_is_prefix_key
 If the key is prefix of the column. More...
 
bool m_is_fixed_len
 If it is fixed length type. More...
 
Compare m_compare
 If it is integer type. More...
 
bool m_is_unsigned
 If it is unsigned integer type. More...
 
bool m_fixed_len_if_set_in_row
 Check the row header to find out if it is fixed length. More...
 
bool m_is_single_byte_len
 If character column length can be kept in one byte. More...
 
uint16_t m_fixed_len
 The length of column data if fixed. More...
 
uint16_t m_max_len
 Maximum length of data in bytes. More...
 
uint16_t m_index
 Index of column in row. More...
 
uint16_t m_null_byte
 Byte index in NULL bitmap. More...
 
uint16_t m_null_bit
 BIT number in NULL bitmap. More...
 
const void * m_charset
 Character set for char & varchar columns. More...
 
std::string m_field_name
 Field name. More...
 

Detailed Description

Column metadata information.

Member Enumeration Documentation

◆ Compare

enum class Column_meta::Compare
strong

Data comparison method.

Enumerator
INTEGER_SIGNED 
INTEGER_UNSIGNED 
BINARY 
MYSQL 

Member Function Documentation

◆ can_be_stored_externally()

bool Column_meta::can_be_stored_externally ( ) const
inline

Based on the column data type check if it can be stored externally.

Returns
true if the column data can be stored externally
false if the column data cannot be stored externally

◆ get_type_string()

std::string Column_meta::get_type_string ( ) const
inline

◆ is_integer()

bool Column_meta::is_integer ( ) const
inline
Returns
true if integer type.

◆ print()

std::ostream & Column_meta::print ( std::ostream &  out) const
inline

Print this object into the given output stream.

Parameters
[in]outoutput stream into which object will be printed
Returns
given output stream.

Member Data Documentation

◆ m_charset

const void* Column_meta::m_charset

Character set for char & varchar columns.

◆ m_compare

Compare Column_meta::m_compare

If it is integer type.

◆ m_field_name

std::string Column_meta::m_field_name

Field name.

◆ m_fixed_len

uint16_t Column_meta::m_fixed_len

The length of column data if fixed.

◆ m_fixed_len_if_set_in_row

bool Column_meta::m_fixed_len_if_set_in_row

Check the row header to find out if it is fixed length.

For character data type the row header indicates fixed length.

◆ m_index

uint16_t Column_meta::m_index

Index of column in row.

◆ m_is_desc_key

bool Column_meta::m_is_desc_key

If the key is descending.

◆ m_is_fixed_len

bool Column_meta::m_is_fixed_len

If it is fixed length type.

◆ m_is_key

bool Column_meta::m_is_key

If column is part of primary key.

◆ m_is_nullable

bool Column_meta::m_is_nullable

If column could be NULL.

◆ m_is_prefix_key

bool Column_meta::m_is_prefix_key

If the key is prefix of the column.

◆ m_is_single_byte_len

bool Column_meta::m_is_single_byte_len

If character column length can be kept in one byte.

◆ m_is_unsigned

bool Column_meta::m_is_unsigned

If it is unsigned integer type.

◆ m_max_len

uint16_t Column_meta::m_max_len

Maximum length of data in bytes.

◆ m_null_bit

uint16_t Column_meta::m_null_bit

BIT number in NULL bitmap.

◆ m_null_byte

uint16_t Column_meta::m_null_byte

Byte index in NULL bitmap.

◆ m_type

enum_field_types Column_meta::m_type

Field type.

(enum_field_types)


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