MySQL 8.4.2
Source Code Documentation
dd::Index_stat_impl Class Reference

#include <index_stat_impl.h>

Inheritance diagram for dd::Index_stat_impl:
[legend]

Public Member Functions

 Index_stat_impl ()
 
void debug_print (String_type &outb) const override
 
const Object_tableobject_table () const override
 
bool validate () const override
 
bool restore_attributes (const Raw_record &r) override
 
bool store_attributes (Raw_record *r) override
 
const String_typeschema_name () const override
 
void set_schema_name (const String_type &schema_name) override
 
const String_typetable_name () const override
 
void set_table_name (const String_type &table_name) override
 
const String_typeindex_name () const override
 
void set_index_name (const String_type &index_name) override
 
const String_typecolumn_name () const override
 
void set_column_name (const String_type &column_name) override
 
ulonglong cardinality () const override
 
void set_cardinality (ulonglong cardinality) override
 
ulonglong cached_time () const override
 
void set_cached_time (ulonglong cached_time) override
 
Object_keycreate_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...
 
Entity_object_implimpl () override
 
const Entity_object_implimpl () 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_typename () 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)
 
- 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...
 
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
 

Static Public Member Functions

static void register_tables (Open_dictionary_tables_ctx *otx)
 

Private Attributes

String_type m_schema_name
 
String_type m_table_name
 
String_type m_index_name
 
String_type m_column_name
 
ulonglong m_cardinality
 
ulonglong m_cached_time
 

Additional Inherited Members

- Public Types inherited from dd::Index_stat
typedef Index_stat_impl Impl
 
typedef tables::Index_stats DD_table
 
typedef Composite_4char_key Name_key
 
- Protected Member Functions inherited from dd::Entity_object_impl
void set_primary_key_value (const Raw_new_record &r) override
 
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_< use_pfs >
bool check_parent_consistency (Entity_object_impl *parent, Object_id parent_id) const
 

Constructor & Destructor Documentation

◆ Index_stat_impl()

dd::Index_stat_impl::Index_stat_impl ( )
inline

Member Function Documentation

◆ cached_time()

ulonglong dd::Index_stat_impl::cached_time ( ) const
inlineoverridevirtual

Implements dd::Index_stat.

◆ cardinality()

ulonglong dd::Index_stat_impl::cardinality ( ) const
inlineoverridevirtual

Implements dd::Index_stat.

◆ column_name()

const String_type & dd::Index_stat_impl::column_name ( ) const
inlineoverridevirtual

Implements dd::Index_stat.

◆ create_primary_key()

Object_key * dd::Index_stat_impl::create_primary_key ( ) const
overridevirtual

Reimplemented from dd::Entity_object_impl.

◆ debug_print()

void dd::Index_stat_impl::debug_print ( String_type outb) const
overridevirtual

Implements dd::Weak_object.

◆ has_new_primary_key()

bool dd::Index_stat_impl::has_new_primary_key ( ) const
overridevirtual

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.

Reimplemented from dd::Entity_object_impl.

◆ id()

Object_id dd::Index_stat_impl::id ( ) const
inlineoverridevirtual

The unique dictionary object id.

Reimplemented from dd::Entity_object_impl.

◆ impl() [1/2]

const Entity_object_impl * dd::Index_stat_impl::impl ( ) const
inlineoverridevirtual

Reimplemented from dd::Entity_object_impl.

◆ impl() [2/2]

Entity_object_impl * dd::Index_stat_impl::impl ( )
inlineoverridevirtual

Reimplemented from dd::Entity_object_impl.

◆ index_name()

const String_type & dd::Index_stat_impl::index_name ( ) const
inlineoverridevirtual

Implements dd::Index_stat.

◆ is_persistent()

bool dd::Index_stat_impl::is_persistent ( ) const
inlineoverridevirtual

Is dictionary object persistent in dictionary tables ?

Reimplemented from dd::Entity_object_impl.

◆ name()

const String_type & dd::Index_stat_impl::name ( ) const
inlineoverridevirtual

Reimplemented from dd::Entity_object_impl.

◆ object_table()

const Object_table & dd::Index_stat_impl::object_table ( ) const
overridevirtual

◆ register_tables()

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

The requirement is that we should be able to update Table_stats and Index_stats DD tables even when someone holds global read lock, when we execute ANALYZE TABLE.

◆ restore_attributes()

bool dd::Index_stat_impl::restore_attributes ( const Raw_record r)
overridevirtual

◆ schema_name()

const String_type & dd::Index_stat_impl::schema_name ( ) const
inlineoverridevirtual

Implements dd::Index_stat.

◆ set_cached_time()

void dd::Index_stat_impl::set_cached_time ( ulonglong  cached_time)
inlineoverridevirtual

Implements dd::Index_stat.

◆ set_cardinality()

void dd::Index_stat_impl::set_cardinality ( ulonglong  cardinality)
inlineoverridevirtual

Implements dd::Index_stat.

◆ set_column_name()

void dd::Index_stat_impl::set_column_name ( const String_type column_name)
inlineoverridevirtual

Implements dd::Index_stat.

◆ set_index_name()

void dd::Index_stat_impl::set_index_name ( const String_type index_name)
inlineoverridevirtual

Implements dd::Index_stat.

◆ set_name()

void dd::Index_stat_impl::set_name ( const String_type name)
inlineoverridevirtual

Reimplemented from dd::Entity_object_impl.

◆ set_schema_name()

void dd::Index_stat_impl::set_schema_name ( const String_type schema_name)
inlineoverridevirtual

Implements dd::Index_stat.

◆ set_table_name()

void dd::Index_stat_impl::set_table_name ( const String_type table_name)
inlineoverridevirtual

Implements dd::Index_stat.

◆ store_attributes()

bool dd::Index_stat_impl::store_attributes ( Raw_record r)
overridevirtual

◆ table_name()

const String_type & dd::Index_stat_impl::table_name ( ) const
inlineoverridevirtual

Implements dd::Index_stat.

◆ validate()

bool dd::Index_stat_impl::validate ( ) const
overridevirtual

Member Data Documentation

◆ m_cached_time

ulonglong dd::Index_stat_impl::m_cached_time
private

◆ m_cardinality

ulonglong dd::Index_stat_impl::m_cardinality
private

◆ m_column_name

String_type dd::Index_stat_impl::m_column_name
private

◆ m_index_name

String_type dd::Index_stat_impl::m_index_name
private

◆ m_schema_name

String_type dd::Index_stat_impl::m_schema_name
private

◆ m_table_name

String_type dd::Index_stat_impl::m_table_name
private

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