MySQL  8.0.19
Source Code Documentation
dd::tables::Table_partitions Class Reference

#include <table_partitions.h>

Inheritance diagram for dd::tables::Table_partitions:
dd::Object_table_impl dd::Object_table

Public Types

enum  enum_fields {
  FIELD_ID, FIELD_TABLE_ID, FIELD_PARENT_PARTITION_ID, FIELD_NUMBER,
  FIELD_NAME, FIELD_DESCRIPTION_UTF8, FIELD_ENGINE, FIELD_COMMENT,
  FIELD_OPTIONS, FIELD_SE_PRIVATE_DATA, FIELD_SE_PRIVATE_ID, FIELD_TABLESPACE_ID,
  NUMBER_OF_FIELDS
}
 
enum  enum_indexes {
  INDEX_PK_ID = static_cast<uint>(Common_index::PK_ID), INDEX_UK_TABLE_ID_NAME = static_cast<uint>(Common_index::UK_NAME), INDEX_UK_TABLE_ID_PARENT_PARTITION_ID_NUMBER, INDEX_UK_ENGINE_SE_PRIVATE_ID,
  INDEX_K_ENGINE, INDEX_K_TABLESPACE_ID, INDEX_K_PARENT_PARTITION_ID
}
 
enum  enum_foreign_keys { FK_TABLE_ID, FK_TABLESPACE_ID, FK_PARENT_PARTITION_ID }
 
- Public Types inherited from dd::Object_table_impl
enum  Common_option {
  Common_option::ENGINE, Common_option::CHARSET, Common_option::COLLATION, Common_option::ROW_FORMAT,
  Common_option::STATS_PERSISTENT, Common_option::TABLESPACE
}
 
enum  Common_index { Common_index::PK_ID, Common_index::UK_NAME }
 
enum  Common_field { Common_field::ID }
 

Public Member Functions

 Table_partitions ()
 
- 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 ()
 
virtual const String_typename () const
 Get the table name used by the target definition for the dictionary table. More...
 
virtual Object_table_definition_impltarget_table_definition ()
 Get the target definition for the dictionary table. More...
 
virtual const Object_table_definition_impltarget_table_definition () const
 
virtual void set_abandoned (uint last_dd_version) const
 Mark the target definition for the dictionary table as abandoned. More...
 
virtual bool is_abandoned () const
 Check if the dictionary table is abandoned. More...
 
virtual const Object_table_definition_implactual_table_definition () const
 Get the actual definition for the dictionary table. More...
 
virtual bool set_actual_table_definition (const Properties &table_def_properties) const
 Set the actual definition for the dictionary table. More...
 
virtual int field_number (int target_field_number, const String_type &field_label) const
 
virtual int field_number (const String_type &field_label) const
 Get the field ordinal position in the object table. More...
 
virtual bool populate (THD *) const
 Execute low level code for populating the table. More...
 
virtual bool is_hidden () const
 Check if the table should be hidden. More...
 
virtual void set_hidden (bool hidden)
 Mark the dictionary table as hidden or visible. More...
 
virtual ~Object_table_impl ()
 
- Public Member Functions inherited from dd::Object_table
virtual ~Object_table ()
 

Static Public Member Functions

static const Table_partitionsinstance ()
 
static const CHARSET_INFOname_collation ()
 
static Object_keycreate_key_by_table_id (Object_id table_id)
 
static Object_keycreate_key_by_parent_partition_id (Object_id table_id, Object_id parent_partition_id)
 
static ulonglong read_table_id (const Raw_record &r)
 
static Object_keycreate_se_private_key (const String_type &engine, Object_id se_private_id)
 
static bool get_partition_table_id (THD *thd, const String_type &engine, ulonglong se_private_id, Object_id *oid)
 
- 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_ID 
FIELD_TABLE_ID 
FIELD_PARENT_PARTITION_ID 
FIELD_NUMBER 
FIELD_NAME 
FIELD_DESCRIPTION_UTF8 
FIELD_ENGINE 
FIELD_COMMENT 
FIELD_OPTIONS 
FIELD_SE_PRIVATE_DATA 
FIELD_SE_PRIVATE_ID 
FIELD_TABLESPACE_ID 
NUMBER_OF_FIELDS 

◆ enum_foreign_keys

Enumerator
FK_TABLE_ID 
FK_TABLESPACE_ID 
FK_PARENT_PARTITION_ID 

◆ enum_indexes

Enumerator
INDEX_PK_ID 
INDEX_UK_TABLE_ID_NAME 
INDEX_UK_TABLE_ID_PARENT_PARTITION_ID_NUMBER 
INDEX_UK_ENGINE_SE_PRIVATE_ID 
INDEX_K_ENGINE 
INDEX_K_TABLESPACE_ID 
INDEX_K_PARENT_PARTITION_ID 

Constructor & Destructor Documentation

◆ Table_partitions()

dd::tables::Table_partitions::Table_partitions ( )

Member Function Documentation

◆ create_key_by_parent_partition_id()

Object_key * dd::tables::Table_partitions::create_key_by_parent_partition_id ( Object_id  table_id,
Object_id  parent_partition_id 
)
static

◆ create_key_by_table_id()

Object_key * dd::tables::Table_partitions::create_key_by_table_id ( Object_id  table_id)
static

◆ create_se_private_key()

Object_key * dd::tables::Table_partitions::create_se_private_key ( const String_type engine,
Object_id  se_private_id 
)
static

◆ get_partition_table_id()

bool dd::tables::Table_partitions::get_partition_table_id ( THD thd,
const String_type engine,
ulonglong  se_private_id,
Object_id oid 
)
static

◆ instance()

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

◆ name_collation()

const CHARSET_INFO * dd::tables::Table_partitions::name_collation ( )
static

◆ read_table_id()

Object_id dd::tables::Table_partitions::read_table_id ( const Raw_record r)
static

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