24#ifndef DD__TABLESPACE_IMPL_INCLUDED
25#define DD__TABLESPACE_IMPL_INCLUDED
49class Open_dictionary_tables_ctx;
84 bool is_empty(
THD *thd,
bool *empty)
const override;
183 placeholder->
set_id(
id());
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
Definition: collection.h:44
Definition: entity_object_impl.h:44
void set_name(const String_type &name) override
Definition: entity_object_impl.h:62
void set_id(Object_id id)
Definition: entity_object_impl.h:51
Object_id id() const override
The unique dictionary object id.
Definition: entity_object_impl.h:49
const String_type & name() const override
Definition: entity_object_impl.h:60
Entity_object_impl * impl() override
Definition: entity_object_impl.h:68
bool is_persistent() const override
Is dictionary object persistent in dictionary tables ?
Definition: entity_object_impl.h:57
This class represents all data dictionary table like mysql.tables, mysql.columns and more.
Definition: object_table.h:72
Auxiliary class for opening dictionary tables.
Definition: transaction_impl.h:76
The Properties_impl class implements the Properties interface.
Definition: properties_impl.h:77
bool insert_values(const Properties &properties) override
Insert key/value pairs from a different property object.
Definition: properties_impl.cc:104
The Properties class defines an interface for storing key=value pairs, where both key and value may b...
Definition: properties.h:74
Definition: raw_record.h:46
Opaque context which keeps reusable resoureces needed during deserialization.
Definition: sdi.cc:231
Opaque context which keeps reusable resources needed during serialization.
Definition: sdi.cc:129
Definition: tablespace_file.h:45
Definition: tablespace_impl.h:57
Properties & se_private_data() override
Definition: tablespace_impl.h:117
Tablespace * clone_dropped_object_placeholder() const override
Allocate a new object which can serve as a placeholder for the original object in the Dictionary_clie...
Definition: tablespace_impl.h:181
bool remove_file(String_type data_file) override
Definition: tablespace_impl.cc:315
Tablespace * clone() const override
Allocate a new object graph and invoke the copy constructor for each object.
Definition: tablespace_impl.h:179
const String_type & engine() const override
Definition: tablespace_impl.h:127
void serialize(Sdi_wcontext *wctx, Sdi_writer *w) const override
Converts *this into json.
Definition: tablespace_impl.cc:215
const String_type & name() const override
Definition: tablespace_impl.h:157
Tablespace_file_collection m_files
Definition: tablespace_impl.h:175
const String_type & comment() const override
Definition: tablespace_impl.h:93
bool restore_attributes(const Raw_record &r) override
Definition: tablespace_impl.cc:158
static void register_tables(Open_dictionary_tables_ctx *otx)
Definition: tablespace_impl.cc:334
const Properties & options() const override
Definition: tablespace_impl.h:101
~Tablespace_impl() override
const Tablespace_file_collection & files() const override
Definition: tablespace_impl.h:146
const Entity_object_impl * impl() const override
Definition: tablespace_impl.h:150
Tablespace_file * add_file() override
Definition: tablespace_impl.cc:307
bool store_children(Open_dictionary_tables_ctx *otx) override
Definition: tablespace_impl.cc:134
LEX_CSTRING engine_attribute() const override
Definition: tablespace_impl.h:131
bool set_se_private_data(const String_type &se_private_data_raw) override
Definition: tablespace_impl.h:119
bool validate() const override
Definition: tablespace_impl.cc:108
Properties_impl m_options
Definition: tablespace_impl.h:168
Object_id id() const override
The unique dictionary object id.
Definition: tablespace_impl.h:153
Tablespace_impl()
Definition: tablespace_impl.cc:99
bool is_persistent() const override
Is dictionary object persistent in dictionary tables ?
Definition: tablespace_impl.h:154
Properties & options() override
Definition: tablespace_impl.h:103
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 provide...
Definition: tablespace_impl.cc:229
void set_comment(const String_type &comment) override
Definition: tablespace_impl.h:95
bool restore_children(Open_dictionary_tables_ctx *otx) override
Definition: tablespace_impl.cc:126
String_type m_engine_attribute
Definition: tablespace_impl.h:171
void debug_print(String_type &outb) const override
Definition: tablespace_impl.cc:282
Entity_object_impl * impl() override
Definition: tablespace_impl.h:149
bool set_options(const String_type &options_raw) override
Definition: tablespace_impl.h:105
String_type m_comment
Definition: tablespace_impl.h:167
const Object_table & object_table() const override
Definition: tablespace_impl.cc:328
bool drop_children(Open_dictionary_tables_ctx *otx) const override
Definition: tablespace_impl.cc:150
bool is_empty(THD *thd, bool *empty) const override
Check if the tablespace is empty, i.e., whether it has any tables.
Definition: tablespace_impl.cc:257
void set_engine_attribute(LEX_CSTRING a) override
Definition: tablespace_impl.h:134
const Properties & se_private_data() const override
Definition: tablespace_impl.h:113
Properties_impl m_se_private_data
Definition: tablespace_impl.h:169
void set_name(const String_type &name) override
Definition: tablespace_impl.h:160
void set_engine(const String_type &engine) override
Definition: tablespace_impl.h:129
String_type m_engine
Definition: tablespace_impl.h:170
bool store_attributes(Raw_record *r) override
Definition: tablespace_impl.cc:181
Definition: tablespace.h:56
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
RJ_Writer Sdi_writer
Alias for the rapidjson Writer type to use in serialization.
Definition: sdi_fwd.h:64
unsigned long long Object_id
Definition: object_id.h:31
rapidjson::GenericValue< RJ_Encoding, RJ_Allocator > RJ_Value
Definition: sdi_fwd.h:49
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:51
const mysql_service_registry_t * r
Definition: pfs_example_plugin_employee.cc:86
This header provides Rapidjson Type Aliases.
MYSQL_LEX_CSTRING lex_cstring_handle(const STDSTRINGLIKE_TYPE &s)
Return a LEX_CSTRING handle to a std::string like (meaning something which has the c_str() and length...
Definition: strfunc.h:77
Definition: mysql_lex_string.h:40
const char * str
Definition: mysql_lex_string.h:41
size_t length
Definition: mysql_lex_string.h:42