MySQL  8.0.18
Source Code Documentation
dd::Table_stat_impl Class Reference

#include <table_stat_impl.h>

Inheritance diagram for dd::Table_stat_impl:
dd::Entity_object_impl dd::Table_stat dd::Entity_object dd::Weak_object_impl dd::Entity_object dd::Weak_object dd::Weak_object dd::Weak_object

Public Member Functions

 Table_stat_impl ()
 
virtual void debug_print (String_type &outb) const
 
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)
 
virtual const String_typeschema_name () const
 
virtual void set_schema_name (const String_type &schema_name)
 
virtual const String_typetable_name () const
 
virtual void set_table_name (const String_type &table_name)
 
virtual ulonglong table_rows () const
 
virtual void set_table_rows (ulonglong table_rows)
 
virtual ulonglong avg_row_length () const
 
virtual void set_avg_row_length (ulonglong avg_row_length)
 
virtual ulonglong data_length () const
 
virtual void set_data_length (ulonglong data_length)
 
virtual ulonglong max_data_length () const
 
virtual void set_max_data_length (ulonglong max_data_length)
 
virtual ulonglong index_length () const
 
virtual void set_index_length (ulonglong index_length)
 
virtual ulonglong data_free () const
 
virtual void set_data_free (ulonglong data_free)
 
virtual ulonglong auto_increment () const
 
virtual void set_auto_increment (ulonglong auto_increment)
 
virtual ulonglong checksum () const
 
virtual void set_checksum (ulonglong checksum)
 
virtual ulonglong update_time () const
 
virtual void set_update_time (ulonglong update_time)
 
virtual ulonglong check_time () const
 
virtual void set_check_time (ulonglong check_time)
 
virtual ulonglong cached_time () const
 
virtual void set_cached_time (ulonglong cached_time)
 
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...
 
virtual Entity_object_implimpl ()
 
virtual const Entity_object_implimpl () const
 
virtual Object_id id () const
 The unique dictionary object id. More...
 
virtual bool is_persistent () const
 Is dictionary object persistent in dictionary tables ? More...
 
virtual const String_typename () const
 
virtual void set_name (const String_type &name)
 
- 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 ()
 
 Weak_object (const Weak_object &)=default
 
virtual ~Weak_object ()
 
- 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
 

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
 
ulonglong m_table_rows
 
ulonglong m_avg_row_length
 
ulonglong m_data_length
 
ulonglong m_max_data_length
 
ulonglong m_index_length
 
ulonglong m_data_free
 
ulonglong m_auto_increment
 
ulonglong m_checksum
 
ulonglong m_update_time
 
ulonglong m_check_time
 
ulonglong m_cached_time
 

Additional Inherited Members

- Public Types inherited from dd::Table_stat
typedef Table_stat_impl Impl
 
typedef tables::Table_stats DD_table
 
typedef Composite_char_key Name_key
 
- Protected Member Functions inherited from dd::Entity_object_impl
virtual void set_primary_key_value (const Raw_new_record &r) override
 
virtual 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
bool check_parent_consistency (Entity_object_impl *parent, Object_id parent_id) const
 

Constructor & Destructor Documentation

◆ Table_stat_impl()

dd::Table_stat_impl::Table_stat_impl ( )
inline

Member Function Documentation

◆ auto_increment()

virtual ulonglong dd::Table_stat_impl::auto_increment ( ) const
inlinevirtual

Implements dd::Table_stat.

◆ avg_row_length()

virtual ulonglong dd::Table_stat_impl::avg_row_length ( ) const
inlinevirtual

Implements dd::Table_stat.

◆ cached_time()

virtual ulonglong dd::Table_stat_impl::cached_time ( ) const
inlinevirtual

Implements dd::Table_stat.

◆ check_time()

virtual ulonglong dd::Table_stat_impl::check_time ( ) const
inlinevirtual

Implements dd::Table_stat.

◆ checksum()

virtual ulonglong dd::Table_stat_impl::checksum ( ) const
inlinevirtual

Implements dd::Table_stat.

◆ create_primary_key()

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

Reimplemented from dd::Entity_object_impl.

◆ data_free()

virtual ulonglong dd::Table_stat_impl::data_free ( ) const
inlinevirtual

Implements dd::Table_stat.

◆ data_length()

virtual ulonglong dd::Table_stat_impl::data_length ( ) const
inlinevirtual

Implements dd::Table_stat.

◆ debug_print()

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

Implements dd::Weak_object.

◆ has_new_primary_key()

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

Reimplemented from dd::Entity_object_impl.

◆ id()

virtual Object_id dd::Table_stat_impl::id ( ) const
inlinevirtual

The unique dictionary object id.

Reimplemented from dd::Entity_object_impl.

◆ impl() [1/2]

virtual Entity_object_impl* dd::Table_stat_impl::impl ( )
inlinevirtual

Reimplemented from dd::Entity_object_impl.

◆ impl() [2/2]

virtual const Entity_object_impl* dd::Table_stat_impl::impl ( ) const
inlinevirtual

Reimplemented from dd::Entity_object_impl.

◆ index_length()

virtual ulonglong dd::Table_stat_impl::index_length ( ) const
inlinevirtual

Implements dd::Table_stat.

◆ is_persistent()

virtual bool dd::Table_stat_impl::is_persistent ( ) const
inlinevirtual

Is dictionary object persistent in dictionary tables ?

Reimplemented from dd::Entity_object_impl.

◆ max_data_length()

virtual ulonglong dd::Table_stat_impl::max_data_length ( ) const
inlinevirtual

Implements dd::Table_stat.

◆ name()

virtual const String_type& dd::Table_stat_impl::name ( ) const
inlinevirtual

Reimplemented from dd::Entity_object_impl.

◆ object_table()

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

Implements dd::Weak_object_impl.

◆ register_tables()

void dd::Table_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::Table_stat_impl::restore_attributes ( const Raw_record r)
virtual

Implements dd::Weak_object_impl.

◆ schema_name()

virtual const String_type& dd::Table_stat_impl::schema_name ( ) const
inlinevirtual

Implements dd::Table_stat.

◆ set_auto_increment()

virtual void dd::Table_stat_impl::set_auto_increment ( ulonglong  auto_increment)
inlinevirtual

Implements dd::Table_stat.

◆ set_avg_row_length()

virtual void dd::Table_stat_impl::set_avg_row_length ( ulonglong  avg_row_length)
inlinevirtual

Implements dd::Table_stat.

◆ set_cached_time()

virtual void dd::Table_stat_impl::set_cached_time ( ulonglong  cached_time)
inlinevirtual

Implements dd::Table_stat.

◆ set_check_time()

virtual void dd::Table_stat_impl::set_check_time ( ulonglong  check_time)
inlinevirtual

Implements dd::Table_stat.

◆ set_checksum()

virtual void dd::Table_stat_impl::set_checksum ( ulonglong  checksum)
inlinevirtual

Implements dd::Table_stat.

◆ set_data_free()

virtual void dd::Table_stat_impl::set_data_free ( ulonglong  data_free)
inlinevirtual

Implements dd::Table_stat.

◆ set_data_length()

virtual void dd::Table_stat_impl::set_data_length ( ulonglong  data_length)
inlinevirtual

Implements dd::Table_stat.

◆ set_index_length()

virtual void dd::Table_stat_impl::set_index_length ( ulonglong  index_length)
inlinevirtual

Implements dd::Table_stat.

◆ set_max_data_length()

virtual void dd::Table_stat_impl::set_max_data_length ( ulonglong  max_data_length)
inlinevirtual

Implements dd::Table_stat.

◆ set_name()

virtual void dd::Table_stat_impl::set_name ( const String_type name)
inlinevirtual

Reimplemented from dd::Entity_object_impl.

◆ set_schema_name()

virtual void dd::Table_stat_impl::set_schema_name ( const String_type schema_name)
inlinevirtual

Implements dd::Table_stat.

◆ set_table_name()

virtual void dd::Table_stat_impl::set_table_name ( const String_type table_name)
inlinevirtual

Implements dd::Table_stat.

◆ set_table_rows()

virtual void dd::Table_stat_impl::set_table_rows ( ulonglong  table_rows)
inlinevirtual

Implements dd::Table_stat.

◆ set_update_time()

virtual void dd::Table_stat_impl::set_update_time ( ulonglong  update_time)
inlinevirtual

Implements dd::Table_stat.

◆ store_attributes()

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

Implements dd::Weak_object_impl.

◆ table_name()

virtual const String_type& dd::Table_stat_impl::table_name ( ) const
inlinevirtual

Implements dd::Table_stat.

◆ table_rows()

virtual ulonglong dd::Table_stat_impl::table_rows ( ) const
inlinevirtual

Implements dd::Table_stat.

◆ update_time()

virtual ulonglong dd::Table_stat_impl::update_time ( ) const
inlinevirtual

Implements dd::Table_stat.

◆ validate()

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

Implements dd::Weak_object_impl.

Member Data Documentation

◆ m_auto_increment

ulonglong dd::Table_stat_impl::m_auto_increment
private

◆ m_avg_row_length

ulonglong dd::Table_stat_impl::m_avg_row_length
private

◆ m_cached_time

ulonglong dd::Table_stat_impl::m_cached_time
private

◆ m_check_time

ulonglong dd::Table_stat_impl::m_check_time
private

◆ m_checksum

ulonglong dd::Table_stat_impl::m_checksum
private

◆ m_data_free

ulonglong dd::Table_stat_impl::m_data_free
private

◆ m_data_length

ulonglong dd::Table_stat_impl::m_data_length
private

◆ m_index_length

ulonglong dd::Table_stat_impl::m_index_length
private

◆ m_max_data_length

ulonglong dd::Table_stat_impl::m_max_data_length
private

◆ m_schema_name

String_type dd::Table_stat_impl::m_schema_name
private

◆ m_table_name

String_type dd::Table_stat_impl::m_table_name
private

◆ m_table_rows

ulonglong dd::Table_stat_impl::m_table_rows
private

◆ m_update_time

ulonglong dd::Table_stat_impl::m_update_time
private

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