MySQL 8.0.39
Source Code Documentation
dd::Table_impl Class Reference

#include <table_impl.h>

Inheritance diagram for dd::Table_impl:
[legend]

Public Member Functions

 Table_impl ()
 
 ~Table_impl () override
 
enum_table_type type () const override
 
bool validate () const override
 
bool restore_children (Open_dictionary_tables_ctx *otx) override
 
bool store_children (Open_dictionary_tables_ctx *otx) override
 
bool drop_children (Open_dictionary_tables_ctx *otx) const override
 
bool restore_attributes (const Raw_record &r) override
 
bool store_attributes (Raw_record *r) override
 
void serialize (Sdi_wcontext *wctx, Sdi_writer *w) const override
 Converts *this into json. More...
 
bool deserialize (Sdi_rcontext *rctx, const RJ_Value &val) override
 Re-establishes the state of *this by reading sdi information from the rapidjson DOM subobject provided. More...
 
void debug_print (String_type &outb) const override
 
bool is_temporary () const override
 
void set_is_temporary (bool is_temporary) override
 
Object_id collation_id () const override
 
void set_collation_id (Object_id collation_id) override
 
Object_id tablespace_id () const override
 
void set_tablespace_id (Object_id tablespace_id) override
 
bool is_explicit_tablespace () const override
 
const String_typeengine () const override
 
void set_engine (const String_type &engine) override
 
enum_row_format row_format () const override
 
void set_row_format (enum_row_format row_format) override
 
const String_typecomment () const override
 
void set_comment (const String_type &comment) override
 
uint last_checked_for_upgrade_version_id () const override
 
void mark_as_checked_for_upgrade () override
 
const Propertiesse_private_data () const override
 
Propertiesse_private_data () override
 
bool set_se_private_data (const String_type &se_private_data_raw) override
 
bool set_se_private_data (const Properties &se_private_data) override
 
Object_id se_private_id () const override
 
void set_se_private_id (Object_id se_private_id) override
 
LEX_CSTRING engine_attribute () const override
 
void set_engine_attribute (LEX_CSTRING a) override
 
LEX_CSTRING secondary_engine_attribute () const override
 
void set_secondary_engine_attribute (LEX_CSTRING a) override
 
enum_partition_type partition_type () const override
 
void set_partition_type (enum_partition_type partition_type) override
 
enum_default_partitioning default_partitioning () const override
 
void set_default_partitioning (enum_default_partitioning default_partitioning) override
 
const String_typepartition_expression () const override
 
void set_partition_expression (const String_type &partition_expression) override
 
const String_typepartition_expression_utf8 () const override
 
void set_partition_expression_utf8 (const String_type &partition_expression_utf8) override
 
enum_subpartition_type subpartition_type () const override
 
void set_subpartition_type (enum_subpartition_type subpartition_type) override
 
enum_default_partitioning default_subpartitioning () const override
 
void set_default_subpartitioning (enum_default_partitioning default_subpartitioning) override
 
const String_typesubpartition_expression () const override
 
void set_subpartition_expression (const String_type &subpartition_expression) override
 
const String_typesubpartition_expression_utf8 () const override
 
void set_subpartition_expression_utf8 (const String_type &subpartition_expression_utf8) override
 
Indexadd_index () override
 
Indexadd_first_index () override
 
const Index_collectionindexes () const override
 
Index_collectionindexes () override
 
const Indexget_index (Object_id index_id) const
 
Indexget_index (Object_id index_id)
 
Foreign_keyadd_foreign_key () override
 
const Foreign_key_collectionforeign_keys () const override
 
Foreign_key_collectionforeign_keys () override
 
virtual Foreign_key_parentadd_foreign_key_parent ()
 
bool reload_foreign_key_parents (THD *thd) override
 
const Foreign_key_parent_collectionforeign_key_parents () const override
 
Partitionadd_partition () override
 
const Partition_collectionpartitions () const override
 
Partition_collectionpartitions () override
 
const Partition_leaf_vectorleaf_partitions () const override
 
Partition_leaf_vectorleaf_partitions () override
 
void add_leaf_partition (Partition *p)
 
const Partitionget_partition (Object_id partition_id) const
 
Partitionget_partition (Object_id partition_id)
 
Partitionget_partition (const String_type &name)
 
Entity_object_implimpl () override
 
const Entity_object_implimpl () const override
 
Object_id id () const override
 The unique dictionary object id. More...
 
bool is_persistent () const override
 Is dictionary object persistent in dictionary tables ? More...
 
const String_typename () const override
 
void set_name (const String_type &name) override
 
Object_id schema_id () const override
 
void set_schema_id (Object_id schema_id) override
 
uint mysql_version_id () const override
 
const Propertiesoptions () const override
 
Propertiesoptions () override
 
bool set_options (const Properties &options) override
 
bool set_options (const String_type &options_raw) override
 
ulonglong created (bool convert_time) const override
 
void set_created (ulonglong created) override
 
ulonglong last_altered (bool convert_time) const override
 
void set_last_altered (ulonglong last_altered) override
 
Columnadd_column () override
 
bool drop_column (const String_type &name) override
 
const Column_collectioncolumns () const override
 
Column_collectioncolumns () override
 
const Columnget_column (Object_id column_id) const
 
Columnget_column (Object_id column_id)
 
const Columnget_column (const String_type &name) const override
 
Columnget_column (const String_type &name)
 
bool update_aux_key (Aux_key *key) const override
 
enum_hidden_type hidden () const override
 
void set_hidden (enum_hidden_type hidden) override
 
bool has_trigger () const override
 Check if table has any triggers. More...
 
const Trigger_collectiontriggers () const override
 Get const reference to Trigger_collection. More...
 
Trigger_collectiontriggers () override
 Get non-const pointer to Trigger_collection. More...
 
void copy_triggers (const Table *tab_obj) override
 Copy all the triggers from another dd::Table object. More...
 
Triggeradd_trigger (Trigger::enum_action_timing at, Trigger::enum_event_type et) override
 Add new trigger to the table. More...
 
const Triggerget_trigger (const char *name) const override
 Get dd::Trigger object for the given trigger name. More...
 
Triggeradd_trigger_following (const Trigger *trigger, Trigger::enum_action_timing at, Trigger::enum_event_type et) override
 Add new trigger just after the trigger specified in argument. More...
 
Triggeradd_trigger_preceding (const Trigger *trigger, Trigger::enum_action_timing at, Trigger::enum_event_type et) override
 Add new trigger just before the trigger specified in argument. More...
 
void drop_trigger (const Trigger *trigger) override
 Drop the given trigger object. More...
 
void drop_all_triggers () override
 Drop all the trigger on this dd::Table object. More...
 
Check_constraintadd_check_constraint () override
 
const Check_constraint_collectioncheck_constraints () const override
 
Check_constraint_collectioncheck_constraints () override
 
- Public Member Functions inherited from dd::Abstract_table_impl
const Object_tableobject_table () const override
 
const Columnget_column (Object_id column_id) const
 
Columnget_column (Object_id column_id)
 
Columnget_column (const String_type &name)
 
- Public Member Functions inherited from dd::Entity_object_impl
 Entity_object_impl ()
 
void set_id (Object_id id)
 
Object_keycreate_primary_key () const override
 
bool has_new_primary_key () const override
 Indicates that object is guaranteed to have primary key value which doesn't exist in database (e.g. More...
 
- Public Member Functions inherited from dd::Weak_object
 Weak_object ()=default
 
 Weak_object (const Weak_object &)=default
 
virtual ~Weak_object ()=default
 
- Public Member Functions inherited from dd::Weak_object_impl_< use_pfs >
 Weak_object_impl_ ()=default
 
 ~Weak_object_impl_ () override=default
 
void * operator new (size_t size, const std::nothrow_t &nt) noexcept
 
void operator delete (void *ptr, const std::nothrow_t &nt) noexcept
 
void * operator new (size_t size) noexcept
 
void operator delete (void *ptr) noexcept
 
virtual bool store (Open_dictionary_tables_ctx *otx)
 Store the DD object into DD table. More...
 
bool drop (Open_dictionary_tables_ctx *otx) const
 Drop the DD object from DD table. More...
 
- Public Member Functions inherited from dd::Abstract_table
virtual bool update_id_key (Id_key *key) const
 
virtual bool update_name_key (Name_key *key) const
 
 ~Abstract_table () override=default
 
- Public Member Functions inherited from dd::Table
bool update_aux_key (Aux_key *key) const override
 
 ~Table () override=default
 
const Tabletable () const
 Dummy method to be able to use Partition and Table interchangeably in templates. More...
 
Tabletable ()
 

Static Public Member Functions

static void register_tables (Open_dictionary_tables_ctx *otx)
 
- Static Public Member Functions inherited from dd::Abstract_table_impl
static void register_tables (Open_dictionary_tables_ctx *otx)
 
- Static Public Member Functions inherited from dd::Abstract_table
static bool update_id_key (Id_key *key, Object_id id)
 
static bool update_name_key (Name_key *key, Object_id schema_id, const String_type &name)
 
- Static Public Member Functions inherited from dd::Table
static bool update_aux_key (Aux_key *key, const String_type &engine, Object_id se_private_id)
 

Private Member Functions

bool store_triggers (Open_dictionary_tables_ctx *otx)
 Store the trigger object in DD table. More...
 
bool load_foreign_key_parents (Open_dictionary_tables_ctx *otx)
 
uint get_max_action_order (Trigger::enum_action_timing at, Trigger::enum_event_type et) const
 
void reorder_action_order (Trigger::enum_action_timing at, Trigger::enum_event_type et)
 
Trigger_implcreate_trigger ()
 
 Table_impl (const Table_impl &src)
 
Table_implclone () const override
 Allocate a new object graph and invoke the copy constructor for each object. More...
 
Table_implclone_dropped_object_placeholder () const override
 Allocate a new object which can serve as a placeholder for the original object in the Dictionary_client's dropped registry. More...
 

Private Attributes

Object_id m_se_private_id
 
String_type m_engine
 
String_type m_comment
 
uint m_last_checked_for_upgrade_version_id = 0
 
Properties_impl m_se_private_data
 
dd::String_type m_engine_attribute
 
dd::String_type m_secondary_engine_attribute
 
enum_row_format m_row_format
 
bool m_is_temporary
 
enum_partition_type m_partition_type
 
String_type m_partition_expression
 
String_type m_partition_expression_utf8
 
enum_default_partitioning m_default_partitioning
 
enum_subpartition_type m_subpartition_type
 
String_type m_subpartition_expression
 
String_type m_subpartition_expression_utf8
 
enum_default_partitioning m_default_subpartitioning
 
Index_collection m_indexes
 
Foreign_key_collection m_foreign_keys
 
Foreign_key_parent_collection m_foreign_key_parents
 
Partition_collection m_partitions
 
Partition_leaf_vector m_leaf_partitions
 
Trigger_collection m_triggers
 
Check_constraint_collection m_check_constraints
 
Object_id m_collation_id
 
Object_id m_tablespace_id
 

Additional Inherited Members

- Public Types inherited from dd::Abstract_table
enum  enum_hidden_type { HT_VISIBLE = 1 , HT_HIDDEN_SYSTEM , HT_HIDDEN_SE , HT_HIDDEN_DDL }
 Enumeration type which indicates whether the table is hidden, and if yes then which type of hidden table it is. More...
 
typedef Abstract_table_impl Impl
 
typedef Abstract_table Cache_partition
 
typedef tables::Tables DD_table
 
typedef Primary_id_key Id_key
 
typedef Item_name_key Name_key
 
typedef Se_private_id_key Aux_key
 
typedef Collection< Column * > Column_collection
 
- Public Types inherited from dd::Table
enum  enum_row_format {
  RF_FIXED = 1 , RF_DYNAMIC , RF_COMPRESSED , RF_REDUNDANT ,
  RF_COMPACT , RF_PAGED
}
 
enum  enum_partition_type {
  PT_NONE = 0 , PT_HASH , PT_KEY_51 , PT_KEY_55 ,
  PT_LINEAR_HASH , PT_LINEAR_KEY_51 , PT_LINEAR_KEY_55 , PT_RANGE ,
  PT_LIST , PT_RANGE_COLUMNS , PT_LIST_COLUMNS , PT_AUTO ,
  PT_AUTO_LINEAR
}
 
enum  enum_subpartition_type {
  ST_NONE = 0 , ST_HASH , ST_KEY_51 , ST_KEY_55 ,
  ST_LINEAR_HASH , ST_LINEAR_KEY_51 , ST_LINEAR_KEY_55
}
 
enum  enum_default_partitioning { DP_NONE = 0 , DP_NO , DP_YES , DP_NUMBER }
 
typedef Table_impl Impl
 
typedef Collection< Index * > Index_collection
 
typedef Collection< Foreign_key * > Foreign_key_collection
 
typedef std::vector< Foreign_key_parent * > Foreign_key_parent_collection
 
typedef Collection< Partition * > Partition_collection
 
typedef Collection< Trigger * > Trigger_collection
 
typedef Collection< Check_constraint * > Check_constraint_collection
 
typedef std::vector< Partition * > Partition_leaf_vector
 
- Protected Member Functions inherited from dd::Abstract_table_impl
void serialize (Sdi_wcontext *wctx, Sdi_writer *w) const
 
bool deserialize (Sdi_rcontext *rctx, const RJ_Value &val)
 
 Abstract_table_impl ()
 
 ~Abstract_table_impl () override=default
 
 Abstract_table_impl (const Abstract_table_impl &src)
 
- Protected Member Functions inherited from dd::Entity_object_impl
void set_primary_key_value (const Raw_new_record &r) override
 
void fix_has_new_primary_key () override
 
void restore_id (const Raw_record &r, int field_idx)
 
void restore_name (const Raw_record &r, int field_idx)
 
bool store_id (Raw_record *r, int field_idx)
 
bool store_name (Raw_record *r, int field_idx)
 
bool store_name (Raw_record *r, int field_idx, bool is_null)
 
void serialize (Sdi_wcontext *wctx, Sdi_writer *w) const
 
bool deserialize (Sdi_rcontext *rctx, const RJ_Value &val)
 
 Entity_object_impl (const Entity_object_impl &src)
 
- Protected Member Functions inherited from dd::Weak_object_impl_< use_pfs >
bool check_parent_consistency (Entity_object_impl *parent, Object_id parent_id) const
 

Constructor & Destructor Documentation

◆ Table_impl() [1/2]

dd::Table_impl::Table_impl ( )

◆ ~Table_impl()

dd::Table_impl::~Table_impl ( )
override

◆ Table_impl() [2/2]

dd::Table_impl::Table_impl ( const Table_impl src)
private

Member Function Documentation

◆ add_check_constraint()

Check_constraint * dd::Table_impl::add_check_constraint ( )
overridevirtual

Implements dd::Table.

◆ add_column()

Column * dd::Table_impl::add_column ( )
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ add_first_index()

Index * dd::Table_impl::add_first_index ( )
overridevirtual

Implements dd::Table.

◆ add_foreign_key()

Foreign_key * dd::Table_impl::add_foreign_key ( )
overridevirtual

Implements dd::Table.

◆ add_foreign_key_parent()

Foreign_key_parent * dd::Table_impl::add_foreign_key_parent ( )
virtual

◆ add_index()

Index * dd::Table_impl::add_index ( )
overridevirtual

Implements dd::Table.

◆ add_leaf_partition()

void dd::Table_impl::add_leaf_partition ( Partition p)
inline

◆ add_partition()

Partition * dd::Table_impl::add_partition ( )
overridevirtual

Implements dd::Table.

◆ add_trigger()

Trigger * dd::Table_impl::add_trigger ( Trigger::enum_action_timing  at,
Trigger::enum_event_type  et 
)
overridevirtual

Add new trigger to the table.

Parameters
at- Action timing of the trigger to be added.
et- Event type of the trigger to be added.
Returns
Trigger* - Pointer to new Trigger that is added to table.

Implements dd::Table.

◆ add_trigger_following()

Trigger * dd::Table_impl::add_trigger_following ( const Trigger trigger,
Trigger::enum_action_timing  at,
Trigger::enum_event_type  et 
)
overridevirtual

Add new trigger just after the trigger specified in argument.

Parameters
trigger- dd::Trigger object after which the new trigger should be created.
at- Action timing of the trigger to be added.
et- Event type of the trigger to be added.
Returns
Trigger* - Pointer to newly created dd::Trigger object.

Implements dd::Table.

◆ add_trigger_preceding()

Trigger * dd::Table_impl::add_trigger_preceding ( const Trigger trigger,
Trigger::enum_action_timing  at,
Trigger::enum_event_type  et 
)
overridevirtual

Add new trigger just before the trigger specified in argument.

Parameters
trigger- dd::Trigger object before which the new trigger should be created.
at- Action timing of the trigger to be added.
et- Event type of the trigger to be added.
Returns
Trigger* - Pointer to newly created dd::Trigger object.

Implements dd::Table.

◆ check_constraints() [1/2]

const Check_constraint_collection & dd::Table_impl::check_constraints ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ check_constraints() [2/2]

Check_constraint_collection * dd::Table_impl::check_constraints ( )
inlineoverridevirtual

Implements dd::Table.

◆ clone()

Table_impl * dd::Table_impl::clone ( ) const
inlineoverrideprivatevirtual

Allocate a new object graph and invoke the copy constructor for each object.

Returns
pointer to dynamically allocated copy

Implements dd::Table.

◆ clone_dropped_object_placeholder()

Table_impl * dd::Table_impl::clone_dropped_object_placeholder ( ) const
inlineoverrideprivatevirtual

Allocate a new object which can serve as a placeholder for the original object in the Dictionary_client's dropped registry.

Such object has the same keys as the original but has no other info and as result occupies less memory.

Implements dd::Table.

◆ collation_id()

Object_id dd::Table_impl::collation_id ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ columns() [1/2]

const Column_collection & dd::Table_impl::columns ( ) const
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ columns() [2/2]

Column_collection * dd::Table_impl::columns ( )
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ comment()

const String_type & dd::Table_impl::comment ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ copy_triggers()

void dd::Table_impl::copy_triggers ( const Table tab_obj)
overridevirtual

Copy all the triggers from another dd::Table object.

Parameters
tab_objPointer to Table from which the triggers are copied.

Implements dd::Table.

◆ create_trigger()

Trigger_impl * dd::Table_impl::create_trigger ( )
private

◆ created()

ulonglong dd::Table_impl::created ( bool  convert_time) const
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ debug_print()

void dd::Table_impl::debug_print ( String_type outb) const
overridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ default_partitioning()

enum_default_partitioning dd::Table_impl::default_partitioning ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ default_subpartitioning()

enum_default_partitioning dd::Table_impl::default_subpartitioning ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ deserialize()

bool dd::Table_impl::deserialize ( Sdi_rcontext rctx,
const RJ_Value val 
)
overridevirtual

Re-establishes the state of *this by reading sdi information from the rapidjson DOM subobject provided.

Cross-references encountered within this object are tracked in sdictx, so that they can be updated when the entire object graph has been established.

Parameters
rctxstores book-keeping information for the deserialization process
valsubobject of rapidjson DOM containing json representation of this object

Implements dd::Table.

◆ drop_all_triggers()

void dd::Table_impl::drop_all_triggers ( )
overridevirtual

Drop all the trigger on this dd::Table object.

The method returns void, as we just remove the trigger from dd::Collection (dd::Table_impl::m_triggers) in memory. The trigger will be removed from mysql.triggers DD table when the dd::Table object is stored/updated.

Implements dd::Table.

◆ drop_children()

bool dd::Table_impl::drop_children ( Open_dictionary_tables_ctx otx) const
overridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ drop_column()

bool dd::Table_impl::drop_column ( const String_type name)
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ drop_trigger()

void dd::Table_impl::drop_trigger ( const Trigger trigger)
overridevirtual

Drop the given trigger object.

The method returns void, as we just remove the trigger from dd::Collection (dd::Table_impl::m_triggers) in memory. The trigger will be removed from mysql.triggers DD table when the dd::Table object is stored/updated.

Parameters
trigger- dd::Trigger object to be dropped.

Implements dd::Table.

◆ engine()

const String_type & dd::Table_impl::engine ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ engine_attribute()

LEX_CSTRING dd::Table_impl::engine_attribute ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ foreign_key_parents()

const Foreign_key_parent_collection & dd::Table_impl::foreign_key_parents ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ foreign_keys() [1/2]

const Foreign_key_collection & dd::Table_impl::foreign_keys ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ foreign_keys() [2/2]

Foreign_key_collection * dd::Table_impl::foreign_keys ( )
inlineoverridevirtual

Implements dd::Table.

◆ get_column() [1/4]

Column * dd::Table_impl::get_column ( const String_type name)
inline

◆ get_column() [2/4]

const Column * dd::Table_impl::get_column ( const String_type name) const
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ get_column() [3/4]

Column * dd::Table_impl::get_column ( Object_id  column_id)
inline

◆ get_column() [4/4]

const Column * dd::Table_impl::get_column ( Object_id  column_id) const
inline

◆ get_index() [1/2]

Index * dd::Table_impl::get_index ( Object_id  index_id)

◆ get_index() [2/2]

const Index * dd::Table_impl::get_index ( Object_id  index_id) const
inline

◆ get_max_action_order()

uint dd::Table_impl::get_max_action_order ( Trigger::enum_action_timing  at,
Trigger::enum_event_type  et 
) const
private

◆ get_partition() [1/3]

Partition * dd::Table_impl::get_partition ( const String_type name)

◆ get_partition() [2/3]

Partition * dd::Table_impl::get_partition ( Object_id  partition_id)

◆ get_partition() [3/3]

const Partition * dd::Table_impl::get_partition ( Object_id  partition_id) const
inline

◆ get_trigger()

const Trigger * dd::Table_impl::get_trigger ( const char *  name) const
overridevirtual

Get dd::Trigger object for the given trigger name.

Returns
Trigger* - Pointer to Trigger.

Implements dd::Table.

◆ has_trigger()

bool dd::Table_impl::has_trigger ( ) const
inlineoverridevirtual

Check if table has any triggers.

Returns
true - if there are triggers on the table installed.
false - if not.

Implements dd::Table.

◆ hidden()

enum_hidden_type dd::Table_impl::hidden ( ) const
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ id()

Object_id dd::Table_impl::id ( ) const
inlineoverridevirtual

The unique dictionary object id.

Reimplemented from dd::Abstract_table_impl.

◆ impl() [1/2]

const Entity_object_impl * dd::Table_impl::impl ( ) const
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ impl() [2/2]

Entity_object_impl * dd::Table_impl::impl ( )
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ indexes() [1/2]

const Index_collection & dd::Table_impl::indexes ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ indexes() [2/2]

Index_collection * dd::Table_impl::indexes ( )
inlineoverridevirtual

Implements dd::Table.

◆ is_explicit_tablespace()

bool dd::Table_impl::is_explicit_tablespace ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ is_persistent()

bool dd::Table_impl::is_persistent ( ) const
inlineoverridevirtual

Is dictionary object persistent in dictionary tables ?

Reimplemented from dd::Abstract_table_impl.

◆ is_temporary()

bool dd::Table_impl::is_temporary ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ last_altered()

ulonglong dd::Table_impl::last_altered ( bool  convert_time) const
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ last_checked_for_upgrade_version_id()

uint dd::Table_impl::last_checked_for_upgrade_version_id ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ leaf_partitions() [1/2]

const Partition_leaf_vector & dd::Table_impl::leaf_partitions ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ leaf_partitions() [2/2]

Partition_leaf_vector * dd::Table_impl::leaf_partitions ( )
inlineoverridevirtual

Implements dd::Table.

◆ load_foreign_key_parents()

bool dd::Table_impl::load_foreign_key_parents ( Open_dictionary_tables_ctx otx)
private

◆ mark_as_checked_for_upgrade()

void dd::Table_impl::mark_as_checked_for_upgrade ( )
inlineoverridevirtual

Implements dd::Table.

◆ mysql_version_id()

uint dd::Table_impl::mysql_version_id ( ) const
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ name()

const String_type & dd::Table_impl::name ( ) const
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ options() [1/2]

const Properties & dd::Table_impl::options ( ) const
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ options() [2/2]

Properties & dd::Table_impl::options ( )
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ partition_expression()

const String_type & dd::Table_impl::partition_expression ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ partition_expression_utf8()

const String_type & dd::Table_impl::partition_expression_utf8 ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ partition_type()

enum_partition_type dd::Table_impl::partition_type ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ partitions() [1/2]

const Partition_collection & dd::Table_impl::partitions ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ partitions() [2/2]

Partition_collection * dd::Table_impl::partitions ( )
inlineoverridevirtual

Implements dd::Table.

◆ register_tables()

void dd::Table_impl::register_tables ( Open_dictionary_tables_ctx otx)
static

◆ reload_foreign_key_parents()

bool dd::Table_impl::reload_foreign_key_parents ( THD thd)
overridevirtual

Implements dd::Table.

◆ reorder_action_order()

void dd::Table_impl::reorder_action_order ( Trigger::enum_action_timing  at,
Trigger::enum_event_type  et 
)
private

◆ restore_attributes()

bool dd::Table_impl::restore_attributes ( const Raw_record r)
overridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ restore_children()

bool dd::Table_impl::restore_children ( Open_dictionary_tables_ctx otx)
overridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ row_format()

enum_row_format dd::Table_impl::row_format ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ schema_id()

Object_id dd::Table_impl::schema_id ( ) const
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ se_private_data() [1/2]

const Properties & dd::Table_impl::se_private_data ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ se_private_data() [2/2]

Properties & dd::Table_impl::se_private_data ( )
inlineoverridevirtual

Implements dd::Table.

◆ se_private_id()

Object_id dd::Table_impl::se_private_id ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ secondary_engine_attribute()

LEX_CSTRING dd::Table_impl::secondary_engine_attribute ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ serialize()

void dd::Table_impl::serialize ( Sdi_wcontext wctx,
Sdi_writer w 
) const
overridevirtual

Converts *this into json.

Converts all member variables that are to be included in the sdi into json by transforming them appropriately and passing them to the rapidjson writer provided.

Parameters
wctxopaque context for data needed by serialization
wrapidjson writer which will perform conversion to json

Implements dd::Table.

◆ set_collation_id()

void dd::Table_impl::set_collation_id ( Object_id  collation_id)
inlineoverridevirtual

Implements dd::Table.

◆ set_comment()

void dd::Table_impl::set_comment ( const String_type comment)
inlineoverridevirtual

Implements dd::Table.

◆ set_created()

void dd::Table_impl::set_created ( ulonglong  created)
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ set_default_partitioning()

void dd::Table_impl::set_default_partitioning ( enum_default_partitioning  default_partitioning)
inlineoverridevirtual

Implements dd::Table.

◆ set_default_subpartitioning()

void dd::Table_impl::set_default_subpartitioning ( enum_default_partitioning  default_subpartitioning)
inlineoverridevirtual

Implements dd::Table.

◆ set_engine()

void dd::Table_impl::set_engine ( const String_type engine)
inlineoverridevirtual

Implements dd::Table.

◆ set_engine_attribute()

void dd::Table_impl::set_engine_attribute ( LEX_CSTRING  a)
inlineoverridevirtual

Implements dd::Table.

◆ set_hidden()

void dd::Table_impl::set_hidden ( enum_hidden_type  hidden)
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ set_is_temporary()

void dd::Table_impl::set_is_temporary ( bool  is_temporary)
inlineoverridevirtual

Implements dd::Table.

◆ set_last_altered()

void dd::Table_impl::set_last_altered ( ulonglong  last_altered)
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ set_name()

void dd::Table_impl::set_name ( const String_type name)
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ set_options() [1/2]

bool dd::Table_impl::set_options ( const Properties options)
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ set_options() [2/2]

bool dd::Table_impl::set_options ( const String_type options_raw)
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ set_partition_expression()

void dd::Table_impl::set_partition_expression ( const String_type partition_expression)
inlineoverridevirtual

Implements dd::Table.

◆ set_partition_expression_utf8()

void dd::Table_impl::set_partition_expression_utf8 ( const String_type partition_expression_utf8)
inlineoverridevirtual

Implements dd::Table.

◆ set_partition_type()

void dd::Table_impl::set_partition_type ( enum_partition_type  partition_type)
inlineoverridevirtual

Implements dd::Table.

◆ set_row_format()

void dd::Table_impl::set_row_format ( enum_row_format  row_format)
inlineoverridevirtual

Implements dd::Table.

◆ set_schema_id()

void dd::Table_impl::set_schema_id ( Object_id  schema_id)
inlineoverridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ set_se_private_data() [1/2]

bool dd::Table_impl::set_se_private_data ( const Properties se_private_data)
inlineoverridevirtual

Implements dd::Table.

◆ set_se_private_data() [2/2]

bool dd::Table_impl::set_se_private_data ( const String_type se_private_data_raw)
inlineoverridevirtual

Implements dd::Table.

◆ set_se_private_id()

void dd::Table_impl::set_se_private_id ( Object_id  se_private_id)
inlineoverridevirtual

Implements dd::Table.

◆ set_secondary_engine_attribute()

void dd::Table_impl::set_secondary_engine_attribute ( LEX_CSTRING  a)
inlineoverridevirtual

Implements dd::Table.

◆ set_subpartition_expression()

void dd::Table_impl::set_subpartition_expression ( const String_type subpartition_expression)
inlineoverridevirtual

Implements dd::Table.

◆ set_subpartition_expression_utf8()

void dd::Table_impl::set_subpartition_expression_utf8 ( const String_type subpartition_expression_utf8)
inlineoverridevirtual

Implements dd::Table.

◆ set_subpartition_type()

void dd::Table_impl::set_subpartition_type ( enum_subpartition_type  subpartition_type)
inlineoverridevirtual

Implements dd::Table.

◆ set_tablespace_id()

void dd::Table_impl::set_tablespace_id ( Object_id  tablespace_id)
inlineoverridevirtual

Implements dd::Table.

◆ store_attributes()

bool dd::Table_impl::store_attributes ( Raw_record r)
overridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ store_children()

bool dd::Table_impl::store_children ( Open_dictionary_tables_ctx otx)
overridevirtual

Reimplemented from dd::Abstract_table_impl.

◆ store_triggers()

bool dd::Table_impl::store_triggers ( Open_dictionary_tables_ctx otx)
private

Store the trigger object in DD table.

Parameters
otxcurrent Open_dictionary_tables_ctx
Returns
false on success. true on failure.

◆ subpartition_expression()

const String_type & dd::Table_impl::subpartition_expression ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ subpartition_expression_utf8()

const String_type & dd::Table_impl::subpartition_expression_utf8 ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ subpartition_type()

enum_subpartition_type dd::Table_impl::subpartition_type ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ tablespace_id()

Object_id dd::Table_impl::tablespace_id ( ) const
inlineoverridevirtual

Implements dd::Table.

◆ triggers() [1/2]

const Trigger_collection & dd::Table_impl::triggers ( ) const
inlineoverridevirtual

Get const reference to Trigger_collection.

Returns
Trigger_collection& - Const reference to a collection of triggers.

Implements dd::Table.

◆ triggers() [2/2]

Trigger_collection * dd::Table_impl::triggers ( )
inlineoverridevirtual

Get non-const pointer to Trigger_collection.

Returns
Trigger_collection* - Pointer to collection of triggers.

Implements dd::Table.

◆ type()

enum_table_type dd::Table_impl::type ( ) const
inlineoverridevirtual

Implements dd::Abstract_table.

◆ update_aux_key()

bool dd::Table_impl::update_aux_key ( Aux_key key) const
inlineoverridevirtual

Reimplemented from dd::Abstract_table.

◆ validate()

bool dd::Table_impl::validate ( ) const
overridevirtual

Reimplemented from dd::Abstract_table_impl.

Member Data Documentation

◆ m_check_constraints

Check_constraint_collection dd::Table_impl::m_check_constraints
private

◆ m_collation_id

Object_id dd::Table_impl::m_collation_id
private

◆ m_comment

String_type dd::Table_impl::m_comment
private

◆ m_default_partitioning

enum_default_partitioning dd::Table_impl::m_default_partitioning
private

◆ m_default_subpartitioning

enum_default_partitioning dd::Table_impl::m_default_subpartitioning
private

◆ m_engine

String_type dd::Table_impl::m_engine
private

◆ m_engine_attribute

dd::String_type dd::Table_impl::m_engine_attribute
private

◆ m_foreign_key_parents

Foreign_key_parent_collection dd::Table_impl::m_foreign_key_parents
private

◆ m_foreign_keys

Foreign_key_collection dd::Table_impl::m_foreign_keys
private

◆ m_indexes

Index_collection dd::Table_impl::m_indexes
private

◆ m_is_temporary

bool dd::Table_impl::m_is_temporary
private

◆ m_last_checked_for_upgrade_version_id

uint dd::Table_impl::m_last_checked_for_upgrade_version_id = 0
private

◆ m_leaf_partitions

Partition_leaf_vector dd::Table_impl::m_leaf_partitions
private

◆ m_partition_expression

String_type dd::Table_impl::m_partition_expression
private

◆ m_partition_expression_utf8

String_type dd::Table_impl::m_partition_expression_utf8
private

◆ m_partition_type

enum_partition_type dd::Table_impl::m_partition_type
private

◆ m_partitions

Partition_collection dd::Table_impl::m_partitions
private

◆ m_row_format

enum_row_format dd::Table_impl::m_row_format
private

◆ m_se_private_data

Properties_impl dd::Table_impl::m_se_private_data
private

◆ m_se_private_id

Object_id dd::Table_impl::m_se_private_id
private

◆ m_secondary_engine_attribute

dd::String_type dd::Table_impl::m_secondary_engine_attribute
private

◆ m_subpartition_expression

String_type dd::Table_impl::m_subpartition_expression
private

◆ m_subpartition_expression_utf8

String_type dd::Table_impl::m_subpartition_expression_utf8
private

◆ m_subpartition_type

enum_subpartition_type dd::Table_impl::m_subpartition_type
private

◆ m_tablespace_id

Object_id dd::Table_impl::m_tablespace_id
private

◆ m_triggers

Trigger_collection dd::Table_impl::m_triggers
private

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