MySQL 8.0.40
Source Code Documentation
dd::tables::Table_stats Class Reference

#include <table_stats.h>

Inheritance diagram for dd::tables::Table_stats:
[legend]

Public Types

enum  enum_fields {
  FIELD_SCHEMA_NAME , FIELD_TABLE_NAME , FIELD_TABLE_ROWS , FIELD_AVG_ROW_LENGTH ,
  FIELD_DATA_LENGTH , FIELD_MAX_DATA_LENGTH , FIELD_INDEX_LENGTH , FIELD_DATA_FREE ,
  FIELD_AUTO_INCREMENT , FIELD_CHECKSUM , FIELD_UPDATE_TIME , FIELD_CHECK_TIME ,
  FIELD_CACHED_TIME , NUMBER_OF_FIELDS
}
 
enum  enum_indexes { INDEX_PK_SCHEMA_ID_TABLE_NAME }
 
enum  enum_foreign_keys
 
- Public Types inherited from dd::Object_table_impl
enum class  Common_option {
  ENGINE , CHARSET , COLLATION , ROW_FORMAT ,
  STATS_PERSISTENT , TABLESPACE
}
 
enum class  Common_index { PK_ID , UK_NAME }
 
enum class  Common_field { ID }
 

Public Member Functions

 Table_stats ()
 
Table_statcreate_entity_object (const Raw_record &) const override
 
- Public Member Functions inherited from dd::Entity_object_table_impl
 ~Entity_object_table_impl () override=default
 
bool restore_object_from_record (Open_dictionary_tables_ctx *otx, const Raw_record &record, Entity_object **o) const override
 Prepare a DD object by given raw record. More...
 
const String_typename () const override
 Get the table name used by the target definition for the dictionary table. More...
 
Object_table_definition_impltarget_table_definition () override
 Get the target definition for the dictionary table. More...
 
const Object_table_definition_impltarget_table_definition () const override
 
void set_abandoned (uint last_dd_version) const override
 Mark the target definition for the dictionary table as abandoned. More...
 
bool is_abandoned () const override
 Check if the dictionary table is abandoned. More...
 
const Object_table_definition_implactual_table_definition () const override
 Get the actual definition for the dictionary table. More...
 
bool set_actual_table_definition (const Properties &table_def_properties) const override
 Set the actual definition for the dictionary table. More...
 
int field_number (int target_field_number, const String_type &field_label) const override
 
int field_number (const String_type &field_label) const override
 Get the field ordinal position in the object table. More...
 
bool populate (THD *thd) const override
 Execute low level code for populating the table. More...
 
bool is_hidden () const override
 Check if the table should be hidden. More...
 
void set_hidden (bool hidden) override
 Mark the dictionary table as hidden or visible. More...
 
- Public Member Functions inherited from dd::Object_table_impl
 Object_table_impl (const String_type &schema_name, const String_type &table_name, const String_type &ddl_statement)
 
 Object_table_impl ()
 
const String_typename () const override
 Get the table name used by the target definition for the dictionary table. More...
 
Object_table_definition_impltarget_table_definition () override
 Get the target definition for the dictionary table. More...
 
const Object_table_definition_impltarget_table_definition () const override
 
void set_abandoned (uint last_dd_version) const override
 Mark the target definition for the dictionary table as abandoned. More...
 
bool is_abandoned () const override
 Check if the dictionary table is abandoned. More...
 
const Object_table_definition_implactual_table_definition () const override
 Get the actual definition for the dictionary table. More...
 
bool set_actual_table_definition (const Properties &table_def_properties) const override
 Set the actual definition for the dictionary table. More...
 
int field_number (const String_type &field_label) const override
 Get the field ordinal position in the object table. More...
 
bool populate (THD *) const override
 Execute low level code for populating the table. More...
 
bool is_hidden () const override
 Check if the table should be hidden. More...
 
void set_hidden (bool hidden) override
 Mark the dictionary table as hidden or visible. More...
 
 ~Object_table_impl () override=default
 
- Public Member Functions inherited from dd::Object_table
virtual ~Object_table ()=default
 
- Public Member Functions inherited from dd::Entity_object_table
 ~Entity_object_table () override=default
 

Static Public Member Functions

static const Table_statsinstance ()
 
static Table_stat::Name_keycreate_object_key (const String_type &schema_name, const String_type &table_name)
 
- Static Public Member Functions inherited from dd::Object_table
static Object_tablecreate_object_table ()
 Allocate a new Object_table instance on the heap. More...
 

Additional Inherited Members

- Protected Attributes inherited from dd::Object_table_impl
uint m_last_dd_version
 
Object_table_definition_impl m_target_def
 
bool m_actual_present
 
Object_table_definition_impl m_actual_def
 
bool m_hidden
 

Member Enumeration Documentation

◆ enum_fields

Enumerator
FIELD_SCHEMA_NAME 
FIELD_TABLE_NAME 
FIELD_TABLE_ROWS 
FIELD_AVG_ROW_LENGTH 
FIELD_DATA_LENGTH 
FIELD_MAX_DATA_LENGTH 
FIELD_INDEX_LENGTH 
FIELD_DATA_FREE 
FIELD_AUTO_INCREMENT 
FIELD_CHECKSUM 
FIELD_UPDATE_TIME 
FIELD_CHECK_TIME 
FIELD_CACHED_TIME 
NUMBER_OF_FIELDS 

◆ enum_foreign_keys

◆ enum_indexes

Enumerator
INDEX_PK_SCHEMA_ID_TABLE_NAME 

Constructor & Destructor Documentation

◆ Table_stats()

dd::tables::Table_stats::Table_stats ( )

Member Function Documentation

◆ create_entity_object()

Table_stat * dd::tables::Table_stats::create_entity_object ( const Raw_record ) const
inlineoverridevirtual

◆ create_object_key()

Table_stat::Name_key * dd::tables::Table_stats::create_object_key ( const String_type schema_name,
const String_type table_name 
)
static

◆ instance()

const Table_stats & dd::tables::Table_stats::instance ( )
static

The documentation for this class was generated from the following files: