MySQL  8.0.20
Source Code Documentation
dd::Table_impl Class Reference

#include <table_impl.h>

Inheritance diagram for dd::Table_impl:
dd::Abstract_table_impl dd::Table dd::Entity_object_impl dd::Abstract_table dd::Abstract_table dd::Entity_object dd::Weak_object_impl dd::Entity_object dd::Entity_object dd::Weak_object dd::Weak_object dd::Weak_object dd::Weak_object

Public Member Functions

 Table_impl ()
 
virtual ~Table_impl ()
 
virtual enum_table_type type () const
 
virtual bool validate () const
 
virtual bool restore_children (Open_dictionary_tables_ctx *otx)
 
virtual bool store_children (Open_dictionary_tables_ctx *otx)
 
virtual bool drop_children (Open_dictionary_tables_ctx *otx) const
 
virtual bool restore_attributes (const Raw_record &r)
 
virtual bool store_attributes (Raw_record *r)
 
void serialize (Sdi_wcontext *wctx, Sdi_writer *w) const
 Converts *this into json. More...
 
bool deserialize (Sdi_rcontext *rctx, const RJ_Value &val)
 Re-establishes the state of *this by reading sdi information from the rapidjson DOM subobject provided. More...
 
virtual void debug_print (String_type &outb) const
 
virtual bool is_temporary () const
 
virtual void set_is_temporary (bool is_temporary)
 
virtual Object_id collation_id () const
 
virtual void set_collation_id (Object_id collation_id)
 
virtual Object_id tablespace_id () const
 
virtual void set_tablespace_id (Object_id tablespace_id)
 
virtual bool is_explicit_tablespace () const
 
virtual const String_typeengine () const
 
virtual void set_engine (const String_type &engine)
 
virtual enum_row_format row_format () const
 
virtual void set_row_format (enum_row_format row_format)
 
virtual const String_typecomment () const
 
virtual void set_comment (const String_type &comment)
 
virtual uint last_checked_for_upgrade_version_id () const
 
virtual void mark_as_checked_for_upgrade ()
 
virtual const Propertiesse_private_data () const
 
virtual Propertiesse_private_data ()
 
virtual bool set_se_private_data (const String_type &se_private_data_raw)
 
virtual bool set_se_private_data (const Properties &se_private_data)
 
virtual Object_id se_private_id () const
 
virtual void set_se_private_id (Object_id se_private_id)
 
virtual enum_partition_type partition_type () const
 
virtual void set_partition_type (enum_partition_type partition_type)
 
virtual enum_default_partitioning default_partitioning () const
 
virtual void set_default_partitioning (enum_default_partitioning default_partitioning)
 
virtual const String_typepartition_expression () const
 
virtual void set_partition_expression (const String_type &partition_expression)
 
virtual const String_typepartition_expression_utf8 () const
 
virtual void set_partition_expression_utf8 (const String_type &partition_expression_utf8)
 
virtual enum_subpartition_type subpartition_type () const
 
virtual void set_subpartition_type (enum_subpartition_type subpartition_type)
 
virtual enum_default_partitioning default_subpartitioning () const
 
virtual void set_default_subpartitioning (enum_default_partitioning default_subpartitioning)
 
virtual const String_typesubpartition_expression () const
 
virtual void set_subpartition_expression (const String_type &subpartition_expression)
 
virtual const String_typesubpartition_expression_utf8 () const
 
virtual void set_subpartition_expression_utf8 (const String_type &subpartition_expression_utf8)
 
virtual Indexadd_index ()
 
virtual Indexadd_first_index ()
 
virtual const Index_collectionindexes () const
 
virtual Index_collectionindexes ()
 
const Indexget_index (Object_id index_id) const
 
Indexget_index (Object_id index_id)
 
virtual Foreign_keyadd_foreign_key ()
 
virtual const Foreign_key_collectionforeign_keys () const
 
virtual Foreign_key_collectionforeign_keys ()
 
virtual Foreign_key_parentadd_foreign_key_parent ()
 
virtual bool reload_foreign_key_parents (THD *thd)
 
virtual const Foreign_key_parent_collectionforeign_key_parents () const
 
virtual Partitionadd_partition ()
 
virtual const Partition_collectionpartitions () const
 
virtual Partition_collectionpartitions ()
 
virtual const Partition_leaf_vectorleaf_partitions () const
 
virtual Partition_leaf_vectorleaf_partitions ()
 
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)
 
virtual Entity_object_implimpl ()
 
virtual const Entity_object_implimpl () const
 
virtual Object_id id () const
 The unique dictionary object id. More...
 
virtual bool is_persistent () const
 Is dictionary object persistent in dictionary tables ? More...
 
virtual const String_typename () const
 
virtual void set_name (const String_type &name)
 
virtual Object_id schema_id () const
 
virtual void set_schema_id (Object_id schema_id)
 
virtual uint mysql_version_id () const
 
virtual const Propertiesoptions () const
 
virtual Propertiesoptions ()
 
virtual bool set_options (const Properties &options)
 
virtual bool set_options (const String_type &options_raw)
 
virtual ulonglong created (bool convert_time) const
 
virtual void set_created (ulonglong created)
 
virtual ulonglong last_altered (bool convert_time) const
 
virtual void set_last_altered (ulonglong last_altered)
 
virtual Columnadd_column ()
 
virtual const Column_collectioncolumns () const
 
virtual Column_collectioncolumns ()
 
const Columnget_column (Object_id column_id) const
 
Columnget_column (Object_id column_id)
 
const Columnget_column (const String_type &name) const
 
Columnget_column (const String_type &name)
 
virtual bool update_aux_key (Aux_key *key) const
 
virtual enum_hidden_type hidden () const
 
virtual void set_hidden (enum_hidden_type hidden)
 
virtual bool has_trigger () const
 Check if table has any triggers. More...
 
virtual const Trigger_collectiontriggers () const
 Get const reference to Trigger_collection. More...
 
virtual Trigger_collectiontriggers ()
 Get non-const pointer to Trigger_collection. More...
 
virtual void copy_triggers (const Table *tab_obj)
 Copy all the triggers from another dd::Table object. More...
 
virtual Triggeradd_trigger (Trigger::enum_action_timing at, Trigger::enum_event_type et)
 Add new trigger to the table. More...
 
virtual const Triggerget_trigger (const char *name) const
 Get dd::Trigger object for the given trigger name. More...
 
virtual Triggeradd_trigger_following (const Trigger *trigger, Trigger::enum_action_timing at, Trigger::enum_event_type et)
 Add new trigger just after the trigger specified in argument. More...
 
virtual Triggeradd_trigger_preceding (const Trigger *trigger, Trigger::enum_action_timing at, Trigger::enum_event_type et)
 Add new trigger just before the trigger specified in argument. More...
 
virtual void drop_trigger (const Trigger *trigger)
 Drop the given trigger object. More...
 
virtual void drop_all_triggers ()
 Drop all the trigger on this dd::Table object. More...
 
virtual Check_constraintadd_check_constraint ()
 
virtual const Check_constraint_collectioncheck_constraints () const
 
virtual Check_constraint_collectioncheck_constraints ()
 
- Public Member Functions inherited from dd::Abstract_table_impl
virtual const Object_tableobject_table () const
 
virtual void set_hidden (enum_hidden_type hidden)
 
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)
 
virtual Object_keycreate_primary_key () const override
 
virtual 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 ()
 
 Weak_object (const Weak_object &)=default
 
virtual ~Weak_object ()
 
- Public Member Functions inherited from dd::Weak_object_impl
 Weak_object_impl ()
 
virtual ~Weak_object_impl ()
 
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
 
virtual ~Abstract_table ()
 
- Public Member Functions inherited from dd::Table
virtual ~Table ()
 
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
 Allocate a new object graph and invoke the copy contructor for each object. 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
 
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 ()
 
virtual ~Abstract_table_impl ()
 
 Abstract_table_impl (const Abstract_table_impl &src)
 
- Protected Member Functions inherited from dd::Entity_object_impl
virtual void set_primary_key_value (const Raw_new_record &r) override
 
virtual 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
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 ( )
virtual

◆ 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 ( )
virtual

Implements dd::Table.

◆ add_column()

virtual Column* dd::Table_impl::add_column ( )
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ add_first_index()

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

Implements dd::Table.

◆ add_foreign_key()

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

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 ( )
virtual

Implements dd::Table.

◆ add_leaf_partition()

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

◆ add_partition()

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

Implements dd::Table.

◆ add_trigger()

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

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 
)
virtual

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 
)
virtual

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]

virtual const Check_constraint_collection& dd::Table_impl::check_constraints ( ) const
inlinevirtual

Implements dd::Table.

◆ check_constraints() [2/2]

virtual Check_constraint_collection* dd::Table_impl::check_constraints ( )
inlinevirtual

Implements dd::Table.

◆ clone()

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

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

Returns
pointer to dynamically allocated copy

Implements dd::Table.

◆ collation_id()

virtual Object_id dd::Table_impl::collation_id ( ) const
inlinevirtual

Implements dd::Table.

◆ columns() [1/2]

virtual const Column_collection& dd::Table_impl::columns ( ) const
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ columns() [2/2]

virtual Column_collection* dd::Table_impl::columns ( )
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ comment()

virtual const String_type& dd::Table_impl::comment ( ) const
inlinevirtual

Implements dd::Table.

◆ copy_triggers()

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

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()

virtual ulonglong dd::Table_impl::created ( bool  convert_time) const
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ debug_print()

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

Reimplemented from dd::Abstract_table_impl.

◆ default_partitioning()

virtual enum_default_partitioning dd::Table_impl::default_partitioning ( ) const
inlinevirtual

Implements dd::Table.

◆ default_subpartitioning()

virtual enum_default_partitioning dd::Table_impl::default_subpartitioning ( ) const
inlinevirtual

Implements dd::Table.

◆ deserialize()

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

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 ( )
virtual

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
virtual

Reimplemented from dd::Abstract_table_impl.

◆ drop_trigger()

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

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()

virtual const String_type& dd::Table_impl::engine ( ) const
inlinevirtual

Implements dd::Table.

◆ foreign_key_parents()

virtual const Foreign_key_parent_collection& dd::Table_impl::foreign_key_parents ( ) const
inlinevirtual

Implements dd::Table.

◆ foreign_keys() [1/2]

virtual const Foreign_key_collection& dd::Table_impl::foreign_keys ( ) const
inlinevirtual

Implements dd::Table.

◆ foreign_keys() [2/2]

virtual Foreign_key_collection* dd::Table_impl::foreign_keys ( )
inlinevirtual

Implements dd::Table.

◆ get_column() [1/4]

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

◆ get_column() [2/4]

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

◆ get_column() [3/4]

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

Reimplemented from dd::Abstract_table_impl.

◆ get_column() [4/4]

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

◆ get_index() [1/2]

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

◆ get_index() [2/2]

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

◆ 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]

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

◆ get_partition() [2/3]

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

◆ get_partition() [3/3]

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

◆ get_trigger()

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

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

Returns
Trigger* - Pointer to Trigger.

Implements dd::Table.

◆ has_trigger()

virtual bool dd::Table_impl::has_trigger ( ) const
inlinevirtual

Check if table has any triggers.

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

Implements dd::Table.

◆ hidden()

virtual enum_hidden_type dd::Table_impl::hidden ( ) const
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ id()

virtual Object_id dd::Table_impl::id ( ) const
inlinevirtual

The unique dictionary object id.

Reimplemented from dd::Abstract_table_impl.

◆ impl() [1/2]

virtual Entity_object_impl* dd::Table_impl::impl ( )
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ impl() [2/2]

virtual const Entity_object_impl* dd::Table_impl::impl ( ) const
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ indexes() [1/2]

virtual const Index_collection& dd::Table_impl::indexes ( ) const
inlinevirtual

Implements dd::Table.

◆ indexes() [2/2]

virtual Index_collection* dd::Table_impl::indexes ( )
inlinevirtual

Implements dd::Table.

◆ is_explicit_tablespace()

virtual bool dd::Table_impl::is_explicit_tablespace ( ) const
inlinevirtual

Implements dd::Table.

◆ is_persistent()

virtual bool dd::Table_impl::is_persistent ( ) const
inlinevirtual

Is dictionary object persistent in dictionary tables ?

Reimplemented from dd::Abstract_table_impl.

◆ is_temporary()

virtual bool dd::Table_impl::is_temporary ( ) const
inlinevirtual

Implements dd::Table.

◆ last_altered()

virtual ulonglong dd::Table_impl::last_altered ( bool  convert_time) const
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ last_checked_for_upgrade_version_id()

virtual uint dd::Table_impl::last_checked_for_upgrade_version_id ( ) const
inlinevirtual

Implements dd::Table.

◆ leaf_partitions() [1/2]

virtual const Partition_leaf_vector& dd::Table_impl::leaf_partitions ( ) const
inlinevirtual

Implements dd::Table.

◆ leaf_partitions() [2/2]

virtual Partition_leaf_vector* dd::Table_impl::leaf_partitions ( )
inlinevirtual

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()

virtual void dd::Table_impl::mark_as_checked_for_upgrade ( )
inlinevirtual

Implements dd::Table.

◆ mysql_version_id()

virtual uint dd::Table_impl::mysql_version_id ( ) const
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ name()

virtual const String_type& dd::Table_impl::name ( ) const
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ options() [1/2]

virtual const Properties& dd::Table_impl::options ( ) const
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ options() [2/2]

virtual Properties& dd::Table_impl::options ( )
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ partition_expression()

virtual const String_type& dd::Table_impl::partition_expression ( ) const
inlinevirtual

Implements dd::Table.

◆ partition_expression_utf8()

virtual const String_type& dd::Table_impl::partition_expression_utf8 ( ) const
inlinevirtual

Implements dd::Table.

◆ partition_type()

virtual enum_partition_type dd::Table_impl::partition_type ( ) const
inlinevirtual

Implements dd::Table.

◆ partitions() [1/2]

virtual const Partition_collection& dd::Table_impl::partitions ( ) const
inlinevirtual

Implements dd::Table.

◆ partitions() [2/2]

virtual Partition_collection* dd::Table_impl::partitions ( )
inlinevirtual

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)
virtual

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)
virtual

Reimplemented from dd::Abstract_table_impl.

◆ restore_children()

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

Reimplemented from dd::Abstract_table_impl.

◆ row_format()

virtual enum_row_format dd::Table_impl::row_format ( ) const
inlinevirtual

Implements dd::Table.

◆ schema_id()

virtual Object_id dd::Table_impl::schema_id ( ) const
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ se_private_data() [1/2]

virtual const Properties& dd::Table_impl::se_private_data ( ) const
inlinevirtual

Implements dd::Table.

◆ se_private_data() [2/2]

virtual Properties& dd::Table_impl::se_private_data ( )
inlinevirtual

Implements dd::Table.

◆ se_private_id()

virtual Object_id dd::Table_impl::se_private_id ( ) const
inlinevirtual

Implements dd::Table.

◆ serialize()

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

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()

virtual void dd::Table_impl::set_collation_id ( Object_id  collation_id)
inlinevirtual

Implements dd::Table.

◆ set_comment()

virtual void dd::Table_impl::set_comment ( const String_type comment)
inlinevirtual

Implements dd::Table.

◆ set_created()

virtual void dd::Table_impl::set_created ( ulonglong  created)
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ set_default_partitioning()

virtual void dd::Table_impl::set_default_partitioning ( enum_default_partitioning  default_partitioning)
inlinevirtual

Implements dd::Table.

◆ set_default_subpartitioning()

virtual void dd::Table_impl::set_default_subpartitioning ( enum_default_partitioning  default_subpartitioning)
inlinevirtual

Implements dd::Table.

◆ set_engine()

virtual void dd::Table_impl::set_engine ( const String_type engine)
inlinevirtual

Implements dd::Table.

◆ set_hidden()

virtual void dd::Table_impl::set_hidden ( enum_hidden_type  hidden)
inlinevirtual

Implements dd::Abstract_table.

◆ set_is_temporary()

virtual void dd::Table_impl::set_is_temporary ( bool  is_temporary)
inlinevirtual

Implements dd::Table.

◆ set_last_altered()

virtual void dd::Table_impl::set_last_altered ( ulonglong  last_altered)
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ set_name()

virtual void dd::Table_impl::set_name ( const String_type name)
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ set_options() [1/2]

virtual bool dd::Table_impl::set_options ( const Properties options)
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ set_options() [2/2]

virtual bool dd::Table_impl::set_options ( const String_type options_raw)
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ set_partition_expression()

virtual void dd::Table_impl::set_partition_expression ( const String_type partition_expression)
inlinevirtual

Implements dd::Table.

◆ set_partition_expression_utf8()

virtual void dd::Table_impl::set_partition_expression_utf8 ( const String_type partition_expression_utf8)
inlinevirtual

Implements dd::Table.

◆ set_partition_type()

virtual void dd::Table_impl::set_partition_type ( enum_partition_type  partition_type)
inlinevirtual

Implements dd::Table.

◆ set_row_format()

virtual void dd::Table_impl::set_row_format ( enum_row_format  row_format)
inlinevirtual

Implements dd::Table.

◆ set_schema_id()

virtual void dd::Table_impl::set_schema_id ( Object_id  schema_id)
inlinevirtual

Reimplemented from dd::Abstract_table_impl.

◆ set_se_private_data() [1/2]

virtual bool dd::Table_impl::set_se_private_data ( const String_type se_private_data_raw)
inlinevirtual

Implements dd::Table.

◆ set_se_private_data() [2/2]

virtual bool dd::Table_impl::set_se_private_data ( const Properties se_private_data)
inlinevirtual

Implements dd::Table.

◆ set_se_private_id()

virtual void dd::Table_impl::set_se_private_id ( Object_id  se_private_id)
inlinevirtual

Implements dd::Table.

◆ set_subpartition_expression()

virtual void dd::Table_impl::set_subpartition_expression ( const String_type subpartition_expression)
inlinevirtual

Implements dd::Table.

◆ set_subpartition_expression_utf8()

virtual void dd::Table_impl::set_subpartition_expression_utf8 ( const String_type subpartition_expression_utf8)
inlinevirtual

Implements dd::Table.

◆ set_subpartition_type()

virtual void dd::Table_impl::set_subpartition_type ( enum_subpartition_type  subpartition_type)
inlinevirtual

Implements dd::Table.

◆ set_tablespace_id()

virtual void dd::Table_impl::set_tablespace_id ( Object_id  tablespace_id)
inlinevirtual

Implements dd::Table.

◆ store_attributes()

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

Reimplemented from dd::Abstract_table_impl.

◆ store_children()

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

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()

virtual const String_type& dd::Table_impl::subpartition_expression ( ) const
inlinevirtual

Implements dd::Table.

◆ subpartition_expression_utf8()

virtual const String_type& dd::Table_impl::subpartition_expression_utf8 ( ) const
inlinevirtual

Implements dd::Table.

◆ subpartition_type()

virtual enum_subpartition_type dd::Table_impl::subpartition_type ( ) const
inlinevirtual

Implements dd::Table.

◆ tablespace_id()

virtual Object_id dd::Table_impl::tablespace_id ( ) const
inlinevirtual

Implements dd::Table.

◆ triggers() [1/2]

virtual const Trigger_collection& dd::Table_impl::triggers ( ) const
inlinevirtual

Get const reference to Trigger_collection.

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

Implements dd::Table.

◆ triggers() [2/2]

virtual Trigger_collection* dd::Table_impl::triggers ( )
inlinevirtual

Get non-const pointer to Trigger_collection.

Returns
Trigger_collection* - Pointer to collection of triggers.

Implements dd::Table.

◆ type()

virtual enum_table_type dd::Table_impl::type ( ) const
inlinevirtual

Implements dd::Abstract_table.

◆ update_aux_key()

virtual bool dd::Table_impl::update_aux_key ( Aux_key key) const
inlinevirtual

Reimplemented from dd::Table.

◆ validate()

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

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_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_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: