![]() |
MySQL 8.0.43
Source Code Documentation
|
Represent the record of innodb_table_stats table. More...
#include <dict0stats.h>
Public Member Functions | |
| TableStatsRecord () | |
| Constructor. More... | |
| ~TableStatsRecord () | |
| Destructor. More... | |
| void | set_data (const byte *data, ulint col_offset, ulint len) |
| Set the data for the innodb_table_stats record. More... | |
| char * | get_tbl_name () const |
| Get the table name from innodb_table_stats record. More... | |
| void | set_tbl_name (const byte *data, ulint len) |
| Set the table name for the innodb_table_stats record. More... | |
| char * | get_db_name () const |
| Get the db name from the innodb_table_stats record. More... | |
| void | set_db_name (const byte *data, ulint len) |
| Set the db name for the innodb_table_stats record. More... | |
| uint64_t | get_n_rows () const |
| Get the n_rows from the innodb_table_stats record. More... | |
| void | set_n_rows (uint64_t no_of_rows) |
| Set the n_rows for the innodb_table_stats record. More... | |
| ulint | get_clustered_index_size () const |
| Get the clustered index size from innodb_table_stats record. More... | |
| void | set_clustered_index_size (ulint clust_size) |
| Set the clustered index size for the innodb_table_stats record. More... | |
| ulint | get_sum_of_other_index_size () const |
| Get the sum of other index size. More... | |
| void | set_sum_of_other_index_size (ulint sum_of_other_index_size) |
| Set the sum of sec index size. More... | |
Static Public Attributes | |
| static constexpr unsigned | DB_NAME_COL_NO = 0 |
| Column number of innodb_table_stats.database_name. More... | |
| static constexpr unsigned | TABLE_NAME_COL_NO = 1 |
| Column number of innodb_table_stats.table_name. More... | |
| static constexpr unsigned | N_ROWS_COL_NO = 3 |
| Column number of innodb_table_stats.n_rows. More... | |
| static constexpr unsigned | CLUST_INDEX_SIZE_COL_NO = 4 |
| Column number of innodb_table_stats.clustered_index_size. More... | |
| static constexpr unsigned | SUM_OF_OTHER_INDEX_SIZE_COL_NO = 5 |
| Column number of innodb_table_stats.sum_of_other_index_sizes. More... | |
Private Attributes | |
| char * | m_db_name |
| Database name. More... | |
| char * | m_tbl_name |
| Table name. More... | |
| uint64_t | m_n_rows |
| Number of rows. More... | |
| ulint | m_clustered_index_size |
| Clustered index size. More... | |
| ulint | m_sum_of_other_index_sizes |
| Sum of other index size. More... | |
| mem_heap_t * | m_heap |
| Heap to store db_name, tbl_name for the record. More... | |
Represent the record of innodb_table_stats table.
| TableStatsRecord::TableStatsRecord | ( | ) |
Constructor.
| TableStatsRecord::~TableStatsRecord | ( | ) |
Destructor.
| ulint TableStatsRecord::get_clustered_index_size | ( | ) | const |
Get the clustered index size from innodb_table_stats record.
| size | of the clustered index. |
| char * TableStatsRecord::get_db_name | ( | ) | const |
Get the db name from the innodb_table_stats record.
| db | name of the table stats record. |
| uint64_t TableStatsRecord::get_n_rows | ( | ) | const |
Get the n_rows from the innodb_table_stats record.
| n_rows | from the record. |
| ulint TableStatsRecord::get_sum_of_other_index_size | ( | ) | const |
Get the sum of other index size.
| sum | of secondary index size. |
| char * TableStatsRecord::get_tbl_name | ( | ) | const |
Get the table name from innodb_table_stats record.
| table | name of the table_stats record. |
| void TableStatsRecord::set_clustered_index_size | ( | ulint | clust_size | ) |
Set the clustered index size for the innodb_table_stats record.
| [in] | clust_size | clustered index size. |
Set the data for the innodb_table_stats record.
| [in] | data | data to be set in the record |
| [in] | col_offset | column offset |
| [in] | len | length of the data. |
Set the db name for the innodb_table_stats record.
| [in] | data | data to be set |
| [in] | len | length of the data. |
| void TableStatsRecord::set_n_rows | ( | uint64_t | no_of_rows | ) |
Set the n_rows for the innodb_table_stats record.
| [in] | no_of_rows | number of rows. |
| void TableStatsRecord::set_sum_of_other_index_size | ( | ulint | sum_of_other_index_size | ) |
Set the sum of sec index size.
| [in] | sum_of_other_index_size | sum of secondary index size. |
Set the table name for the innodb_table_stats record.
| [in] | data | data to be set in the record |
| [in] | len | length of the data. |
|
staticconstexpr |
Column number of innodb_table_stats.clustered_index_size.
|
staticconstexpr |
Column number of innodb_table_stats.database_name.
|
private |
Clustered index size.
|
private |
Database name.
|
private |
Heap to store db_name, tbl_name for the record.
|
private |
Number of rows.
|
private |
Sum of other index size.
|
private |
Table name.
|
staticconstexpr |
Column number of innodb_table_stats.n_rows.
|
staticconstexpr |
Column number of innodb_table_stats.sum_of_other_index_sizes.
|
staticconstexpr |
Column number of innodb_table_stats.table_name.