MySQL 8.0.39
Source Code Documentation
|
#include <tablespace_impl.h>
Public Member Functions | |
Tablespace_impl () | |
~Tablespace_impl () override | |
const Object_table & | object_table () 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 | store_attributes (Raw_record *r) override |
bool | restore_attributes (const 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_empty (THD *thd, bool *empty) const override |
Check if the tablespace is empty, i.e., whether it has any tables. More... | |
const String_type & | comment () const override |
void | set_comment (const String_type &comment) override |
const Properties & | options () const override |
Properties & | options () override |
bool | set_options (const String_type &options_raw) override |
const Properties & | se_private_data () const override |
Properties & | se_private_data () override |
bool | set_se_private_data (const String_type &se_private_data_raw) override |
const String_type & | engine () const override |
void | set_engine (const String_type &engine) override |
LEX_CSTRING | engine_attribute () const override |
void | set_engine_attribute (LEX_CSTRING a) override |
Tablespace_file * | add_file () override |
bool | remove_file (String_type data_file) override |
const Tablespace_file_collection & | files () const override |
Entity_object_impl * | impl () override |
const Entity_object_impl * | impl () 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_type & | name () const override |
void | set_name (const String_type &name) override |
Public Member Functions inherited from dd::Entity_object_impl | |
Entity_object_impl () | |
void | set_id (Object_id id) |
Object_key * | create_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::Tablespace | |
virtual bool | update_id_key (Id_key *key) const |
virtual bool | update_name_key (Name_key *key) const |
virtual bool | update_aux_key (Aux_key *) const |
~Tablespace () override=default | |
Static Public Member Functions | |
static void | register_tables (Open_dictionary_tables_ctx *otx) |
Static Public Member Functions inherited from dd::Tablespace | |
static bool | update_id_key (Id_key *key, Object_id id) |
static bool | update_name_key (Name_key *key, const String_type &name) |
Private Member Functions | |
Tablespace_impl (const Tablespace_impl &src) | |
Tablespace * | clone () const override |
Allocate a new object graph and invoke the copy constructor for each object. More... | |
Tablespace * | clone_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 | |
String_type | m_comment |
Properties_impl | m_options |
Properties_impl | m_se_private_data |
String_type | m_engine |
String_type | m_engine_attribute |
Tablespace_file_collection | m_files |
dd::Tablespace_impl::Tablespace_impl | ( | ) |
|
overridedefault |
|
private |
|
overridevirtual |
Implements dd::Tablespace.
|
inlineoverrideprivatevirtual |
Allocate a new object graph and invoke the copy constructor for each object.
Implements dd::Tablespace.
|
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::Tablespace.
|
inlineoverridevirtual |
Implements dd::Tablespace.
|
overridevirtual |
Implements dd::Weak_object.
|
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.
rctx | stores book-keeping information for the deserialization process |
val | subobject of rapidjson DOM containing json representation of this object |
Implements dd::Tablespace.
|
overridevirtual |
Reimplemented from dd::Weak_object_impl_< use_pfs >.
|
inlineoverridevirtual |
Implements dd::Tablespace.
|
inlineoverridevirtual |
Implements dd::Tablespace.
|
inlineoverridevirtual |
Implements dd::Tablespace.
|
inlineoverridevirtual |
The unique dictionary object id.
Reimplemented from dd::Entity_object_impl.
|
inlineoverridevirtual |
Reimplemented from dd::Entity_object_impl.
|
inlineoverridevirtual |
Reimplemented from dd::Entity_object_impl.
|
overridevirtual |
Check if the tablespace is empty, i.e., whether it has any tables.
thd | Thread context. | |
[out] | empty | Whether the tablespace is empty. |
Implements dd::Tablespace.
|
inlineoverridevirtual |
Is dictionary object persistent in dictionary tables ?
Reimplemented from dd::Entity_object_impl.
|
inlineoverridevirtual |
Reimplemented from dd::Entity_object_impl.
|
overridevirtual |
Implements dd::Weak_object_impl_< use_pfs >.
|
inlineoverridevirtual |
Implements dd::Tablespace.
|
inlineoverridevirtual |
Implements dd::Tablespace.
|
static |
|
overridevirtual |
Implements dd::Tablespace.
|
overridevirtual |
Implements dd::Weak_object_impl_< use_pfs >.
|
overridevirtual |
Reimplemented from dd::Weak_object_impl_< use_pfs >.
|
inlineoverridevirtual |
Implements dd::Tablespace.
|
inlineoverridevirtual |
Implements dd::Tablespace.
|
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.
wctx | opaque context for data needed by serialization |
w | rapidjson writer which will perform conversion to json |
Implements dd::Tablespace.
|
inlineoverridevirtual |
Implements dd::Tablespace.
|
inlineoverridevirtual |
Implements dd::Tablespace.
|
inlineoverridevirtual |
Implements dd::Tablespace.
|
inlineoverridevirtual |
Reimplemented from dd::Entity_object_impl.
|
inlineoverridevirtual |
Implements dd::Tablespace.
|
inlineoverridevirtual |
Implements dd::Tablespace.
|
overridevirtual |
Implements dd::Weak_object_impl_< use_pfs >.
|
overridevirtual |
Reimplemented from dd::Weak_object_impl_< use_pfs >.
|
overridevirtual |
Implements dd::Weak_object_impl_< use_pfs >.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |