23#ifndef DD__PARTITION_IMPL_INCLUDED
24#define DD__PARTITION_IMPL_INCLUDED
48class Open_dictionary_tables_ctx;
Definition: collection.h:43
Definition: entity_object_impl.h:43
void set_name(const String_type &name) override
Definition: entity_object_impl.h:61
Object_id id() const override
The unique dictionary object id.
Definition: entity_object_impl.h:48
const String_type & name() const override
Definition: entity_object_impl.h:59
Entity_object_impl * impl() override
Definition: entity_object_impl.h:67
bool is_persistent() const override
Is dictionary object persistent in dictionary tables ?
Definition: entity_object_impl.h:56
This class represents all data dictionary table like mysql.tables, mysql.columns and more.
Definition: object_table.h:71
Auxiliary class for opening dictionary tables.
Definition: transaction_impl.h:75
Definition: partition_impl.h:59
String_type m_comment
Definition: partition_impl.h:309
Properties_impl m_se_private_data
Definition: partition_impl.h:311
bool set_options(const String_type &options_raw) override
Definition: partition_impl.h:183
void serialize(Sdi_wcontext *wctx, Sdi_writer *w) const override
Converts *this into json.
Definition: partition_impl.cc:258
Table::Partition_collection m_subpartitions
Definition: partition_impl.h:321
void set_se_private_id(Object_id se_private_id) override
Definition: partition_impl.h:211
Object_id se_private_id() const override
Definition: partition_impl.h:209
String_type m_description_utf8
Definition: partition_impl.h:307
Partition * add_subpartition() override
Add a subpartition to a parent partition.
Definition: partition_impl.cc:373
const String_type & name() const override
Definition: partition_impl.h:271
const Partition * m_parent
Definition: partition_impl.h:317
Properties & se_private_data() override
Definition: partition_impl.h:195
bool drop_children(Open_dictionary_tables_ctx *otx) const override
Definition: partition_impl.cc:190
const String_type & comment() const override
Definition: partition_impl.h:167
void set_parent_partition_id(Object_id parent_partition_id) override
Definition: partition_impl.h:131
Partition_indexes * indexes() override
Definition: partition_impl.h:242
static Partition_impl * restore_item(Table_impl *table)
Definition: partition_impl.h:279
Partition_value * add_value() override
Definition: partition_impl.cc:357
const Table_impl & table_impl() const
Definition: partition_impl.h:109
const Partition_indexes & indexes() const override
Definition: partition_impl.h:239
void set_number(uint number) override
Definition: partition_impl.h:141
bool store_children(Open_dictionary_tables_ctx *otx) override
Definition: partition_impl.cc:181
Object_id tablespace_id() const override
Definition: partition_impl.h:219
Table_impl & table_impl()
Definition: partition_impl.h:111
bool restore_children(Open_dictionary_tables_ctx *otx) override
Definition: partition_impl.cc:161
static Partition_impl * restore_item(Partition_impl *part)
Definition: partition_impl.h:283
uint number() const override
Definition: partition_impl.h:139
virtual Partition * parent_partition()
Definition: partition_impl.h:119
Entity_object_impl * impl() override
Definition: partition_impl.h:263
const Table & table() const override
Definition: partition_impl.cc:121
Partition_index * add_index(Index *idx) override
Definition: partition_impl.cc:365
String_type m_engine
Definition: partition_impl.h:308
bool validate() const override
Definition: partition_impl.cc:127
const Partition * parent() const override
Definition: partition_impl.h:259
void set_engine(const String_type &engine) override
Definition: partition_impl.h:161
const Partition_values & values() const override
Definition: partition_impl.h:231
Object_id parent_partition_id() const override
Definition: partition_impl.h:127
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: partition_impl.cc:279
void set_comment(const String_type &comment) override
Definition: partition_impl.h:169
bool set_se_private_data(const String_type &se_private_data_raw) override
Definition: partition_impl.h:197
bool set_se_private_data(const Properties &se_private_data) override
Definition: partition_impl.h:201
static Partition_impl * clone(const Partition_impl &other, Partition_impl *part)
Definition: partition_impl.h:295
void debug_print(String_type &outb) const override
Definition: partition_impl.cc:302
static Partition_impl * clone(const Partition_impl &other, Table_impl *table)
Definition: partition_impl.h:291
const String_type & description_utf8() const override
Definition: partition_impl.h:147
Object_id m_se_private_id
Definition: partition_impl.h:305
bool restore_attributes(const Raw_record &r) override
Definition: partition_impl.cc:205
const Table::Partition_collection & subpartitions() const override
Return reference to const collection of sub partitions.
Definition: partition_impl.h:251
const Entity_object_impl * impl() const override
Definition: partition_impl.h:264
void set_ordinal_position(uint)
Definition: partition_impl.h:94
bool set_options(const Properties &options) override
Definition: partition_impl.h:179
const Properties & options() const override
Definition: partition_impl.h:175
Partition_values m_values
Definition: partition_impl.h:319
Object_id m_parent_partition_id
Definition: partition_impl.h:303
void set_name(const String_type &name) override
Definition: partition_impl.h:274
void set_description_utf8(const String_type &description_utf8) override
Definition: partition_impl.h:151
uint m_number
Definition: partition_impl.h:304
const Object_table & object_table() const override
Definition: partition_impl.cc:439
Properties_impl m_options
Definition: partition_impl.h:310
bool is_persistent() const override
Is dictionary object persistent in dictionary tables ?
Definition: partition_impl.h:268
Properties & options() override
Definition: partition_impl.h:177
static void register_tables(Open_dictionary_tables_ctx *otx)
Definition: partition_impl.cc:445
virtual const Partition * parent_partition() const
Definition: partition_impl.h:117
Partition_impl()
Definition: partition_impl.cc:73
void set_parent(const Partition *parent) override
Definition: partition_impl.h:260
Table_impl * m_table
Definition: partition_impl.h:315
~Partition_impl() override
const String_type & engine() const override
Definition: partition_impl.h:159
Object_id id() const override
The unique dictionary object id.
Definition: partition_impl.h:267
bool store_attributes(Raw_record *r) override
Definition: partition_impl.cc:234
virtual uint ordinal_position() const
Definition: partition_impl.h:96
void set_tablespace_id(Object_id tablespace_id) override
Definition: partition_impl.h:221
const Properties & se_private_data() const override
Definition: partition_impl.h:191
Table::Partition_collection * subpartitions() override
Return non-const point to collection of sub partitions.
Definition: partition_impl.h:255
Object_id m_tablespace_id
Definition: partition_impl.h:325
Partition_indexes m_indexes
Definition: partition_impl.h:320
Definition: partition_index.h:46
Definition: partition_value.h:44
Definition: partition.h:50
virtual Object_id parent_partition_id() const =0
virtual uint number() const =0
The Properties_impl class implements the Properties interface.
Definition: properties_impl.h:76
bool insert_values(const Properties &properties) override
Insert key/value pairs from a different property object.
Definition: properties_impl.cc:103
The Properties class defines an interface for storing key=value pairs, where both key and value may b...
Definition: properties.h:73
Definition: raw_record.h:45
Opaque context which keeps reusable resoureces needed during deserialization.
Definition: sdi.cc:230
Opaque context which keeps reusable resources needed during serialization.
Definition: sdi.cc:128
Definition: table_impl.h:67
const char * p
Definition: ctype-mb.cc:1234
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42
RJ_Writer Sdi_writer
Alias for the rapidjson Writer type to use in serialization.
Definition: sdi_fwd.h:63
unsigned long long Object_id
Definition: object_id.h:30
rapidjson::GenericValue< RJ_Encoding, RJ_Allocator > RJ_Value
Definition: sdi_fwd.h:48
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:50
Definition: options.cc:56
const mysql_service_registry_t * r
Definition: pfs_example_plugin_employee.cc:85
This header provides Rapidjson Type Aliases.
Used to compare two partition elements.
Definition: partition_impl.h:331
bool operator()(const dd::Partition *p1, const dd::Partition *p2) const
Definition: partition_impl.h:333