MySQL  8.0.18
Source Code Documentation
dd::Partition_index_impl Class Reference

#include <partition_index_impl.h>

Inheritance diagram for dd::Partition_index_impl:
dd::Weak_object_impl dd::Partition_index dd::Weak_object dd::Weak_object

Public Member Functions

 Partition_index_impl ()
 
 Partition_index_impl (Partition_impl *partition, Index *index)
 
 Partition_index_impl (const Partition_index_impl &src, Partition_impl *parent, Index *index)
 
virtual ~Partition_index_impl ()
 
virtual const Object_tableobject_table () const
 
virtual bool validate () 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...
 
void debug_print (String_type &outb) const
 
void set_ordinal_position (uint)
 
virtual uint ordinal_position () const
 
virtual const Partitionpartition () const
 
virtual Partitionpartition ()
 
Partition_implpartition_impl ()
 
virtual const Indexindex () const
 
virtual Indexindex ()
 
virtual const Propertiesoptions () const
 
virtual Propertiesoptions ()
 
virtual bool set_options (const Properties &options)
 
virtual bool set_options (const String_type &options_raw)
 
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 tablespace_id () const
 
virtual void set_tablespace_id (Object_id tablespace_id)
 
virtual Object_keycreate_primary_key () const
 
virtual bool has_new_primary_key () const
 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_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...
 
virtual bool restore_children (Open_dictionary_tables_ctx *)
 
virtual bool store_children (Open_dictionary_tables_ctx *)
 
virtual bool drop_children (Open_dictionary_tables_ctx *) const
 
- 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::Partition_index
virtual ~Partition_index ()
 
const String_typename () const
 

Static Public Member Functions

static void register_tables (Open_dictionary_tables_ctx *otx)
 
static Partition_index_implrestore_item (Partition_impl *partition)
 
static Partition_index_implclone (const Partition_index_impl &other, Partition_impl *partition)
 

Private Attributes

Properties_impl m_options
 
Properties_impl m_se_private_data
 
Partition_implm_partition
 
Indexm_index
 
Object_id m_tablespace_id
 

Additional Inherited Members

- Public Types inherited from dd::Partition_index
typedef Partition_index_impl Impl
 
typedef tables::Index_partitions DD_table
 
- Protected Member Functions inherited from dd::Weak_object_impl
virtual void set_primary_key_value (const Raw_new_record &)
 
virtual void fix_has_new_primary_key ()
 
bool check_parent_consistency (Entity_object_impl *parent, Object_id parent_id) const
 

Constructor & Destructor Documentation

◆ Partition_index_impl() [1/3]

dd::Partition_index_impl::Partition_index_impl ( )

◆ Partition_index_impl() [2/3]

dd::Partition_index_impl::Partition_index_impl ( Partition_impl partition,
Index index 
)

◆ Partition_index_impl() [3/3]

dd::Partition_index_impl::Partition_index_impl ( const Partition_index_impl src,
Partition_impl parent,
Index index 
)

◆ ~Partition_index_impl()

virtual dd::Partition_index_impl::~Partition_index_impl ( )
inlinevirtual

Member Function Documentation

◆ clone()

Partition_index_impl * dd::Partition_index_impl::clone ( const Partition_index_impl other,
Partition_impl partition 
)
static

◆ create_primary_key()

Object_key * dd::Partition_index_impl::create_primary_key ( ) const
virtual

Implements dd::Weak_object_impl.

◆ debug_print()

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

Implements dd::Weak_object.

◆ deserialize()

bool dd::Partition_index_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::Partition_index.

◆ has_new_primary_key()

bool dd::Partition_index_impl::has_new_primary_key ( ) const
virtual

Indicates that object is guaranteed to have primary key value which doesn't exist in database (e.g.

because it only will be generated using auto-increment at store() time). So it is ok for store() method to skip lookup of existing object with the same primary key and simply try to insert new object into the table.

Implements dd::Weak_object_impl.

◆ index() [1/2]

const Index & dd::Partition_index_impl::index ( ) const
virtual

Implements dd::Partition_index.

◆ index() [2/2]

Index & dd::Partition_index_impl::index ( )
virtual

Implements dd::Partition_index.

◆ object_table()

const Object_table & dd::Partition_index_impl::object_table ( ) const
virtual

Implements dd::Weak_object_impl.

◆ options() [1/2]

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

Implements dd::Partition_index.

◆ options() [2/2]

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

Implements dd::Partition_index.

◆ ordinal_position()

virtual uint dd::Partition_index_impl::ordinal_position ( ) const
inlinevirtual

◆ partition() [1/2]

const Partition & dd::Partition_index_impl::partition ( ) const
virtual

Implements dd::Partition_index.

◆ partition() [2/2]

Partition & dd::Partition_index_impl::partition ( )
virtual

Implements dd::Partition_index.

◆ partition_impl()

Partition_impl& dd::Partition_index_impl::partition_impl ( )
inline

◆ register_tables()

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

◆ restore_attributes()

bool dd::Partition_index_impl::restore_attributes ( const Raw_record r)
virtual

Implements dd::Weak_object_impl.

◆ restore_item()

static Partition_index_impl* dd::Partition_index_impl::restore_item ( Partition_impl partition)
inlinestatic

◆ se_private_data() [1/2]

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

Implements dd::Partition_index.

◆ se_private_data() [2/2]

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

Implements dd::Partition_index.

◆ serialize()

void dd::Partition_index_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::Partition_index.

◆ set_options() [1/2]

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

Implements dd::Partition_index.

◆ set_options() [2/2]

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

Implements dd::Partition_index.

◆ set_ordinal_position()

void dd::Partition_index_impl::set_ordinal_position ( uint  )
inline

◆ set_se_private_data() [1/2]

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

Implements dd::Partition_index.

◆ set_se_private_data() [2/2]

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

Implements dd::Partition_index.

◆ set_tablespace_id()

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

Implements dd::Partition_index.

◆ store_attributes()

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

Implements dd::Weak_object_impl.

◆ tablespace_id()

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

Implements dd::Partition_index.

◆ validate()

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

Implements dd::Weak_object_impl.

Member Data Documentation

◆ m_index

Index* dd::Partition_index_impl::m_index
private

◆ m_options

Properties_impl dd::Partition_index_impl::m_options
private

◆ m_partition

Partition_impl* dd::Partition_index_impl::m_partition
private

◆ m_se_private_data

Properties_impl dd::Partition_index_impl::m_se_private_data
private

◆ m_tablespace_id

Object_id dd::Partition_index_impl::m_tablespace_id
private

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