MySQL 8.0.40
Source Code Documentation
|
#include <entity_object_table_impl.h>
Public Member Functions | |
~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_type & | name () const override |
Get the table name used by the target definition for the dictionary table. More... | |
Object_table_definition_impl * | target_table_definition () override |
Get the target definition for the dictionary table. More... | |
const Object_table_definition_impl * | target_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_impl * | actual_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_type & | name () const override |
Get the table name used by the target definition for the dictionary table. More... | |
Object_table_definition_impl * | target_table_definition () override |
Get the target definition for the dictionary table. More... | |
const Object_table_definition_impl * | target_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_impl * | actual_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 | |
virtual Entity_object * | create_entity_object (const Raw_record &record) const =0 |
Additional Inherited Members | |
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 } |
Static Public Member Functions inherited from dd::Object_table | |
static Object_table * | create_object_table () |
Allocate a new Object_table instance on the heap. More... | |
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 |
|
overridedefault |
|
inlineoverridevirtual |
Get the actual definition for the dictionary table.
The actual definition is the definition which is used by a DD table which is stored persistently. Normally, for an ordinary running server, the actual table definitions are equal to the target table definitions. In an upgrade context, they may differ.
Implements dd::Object_table.
|
inlineoverridevirtual |
Get the field ordinal position in the object table.
Implements dd::Object_table.
|
inlineoverridevirtual |
Reimplemented from dd::Object_table_impl.
|
inlineoverridevirtual |
Check if the dictionary table is abandoned.
Implements dd::Object_table.
|
inlineoverridevirtual |
Check if the table should be hidden.
Most of Object tables (alias DD tables) are hidden from users, but some of them are expected to be visible (not hidden) to user and be able to update them, e.g., innodb_index_stats/innodb_table_stats.
Implements dd::Object_table.
|
inlineoverridevirtual |
Get the table name used by the target definition for the dictionary table.
Implements dd::Object_table.
|
inlineoverridevirtual |
Execute low level code for populating the table.
Implements dd::Object_table.
|
overridevirtual |
Prepare a DD object by given raw record.
otx | - Context with information about open tables. |
record | - raw record from which the object is to be prepare. |
o | (OUT) - The object that is prepared. |
Implements dd::Entity_object_table.
|
inlineoverridevirtual |
Mark the target definition for the dictionary table as abandoned.
last_dd_version | Last version where this object table was used. |
Implements dd::Object_table.
|
inlineoverridevirtual |
Set the actual definition for the dictionary table.
table_def_properties | Actual table definition represented as a set of properties. |
Implements dd::Object_table.
|
inlineoverridevirtual |
Mark the dictionary table as hidden or visible.
hidden | Set to 'true' if the table should be hidden. |
Implements dd::Object_table.
|
inlineoverridevirtual |
Implements dd::Object_table.
|
inlineoverridevirtual |
Get the target definition for the dictionary table.
Implements dd::Object_table.