MySQL 8.0.29
Source Code Documentation
table_stat.h
Go to the documentation of this file.
1/* Copyright (c) 2014, 2021, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is also distributed with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have included with MySQL.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef DD__TABLE_STAT_INCLUDED
24#define DD__TABLE_STAT_INCLUDED
25
26#include "sql/dd/types/entity_object.h" // dd::Entity_object
27#include "sql/dd/types/entity_object_table.h" // Entity_object_table
28
29namespace dd {
30
31///////////////////////////////////////////////////////////////////////////
32
33class Composite_char_key;
34class Table_stat_impl;
35
36namespace tables {
37class Table_stats;
38}
39
40///////////////////////////////////////////////////////////////////////////
41
42class Table_stat : virtual public Entity_object {
43 public:
47
48 public:
49 /////////////////////////////////////////////////////////////////////////
50 // schema name.
51 /////////////////////////////////////////////////////////////////////////
52
53 virtual const String_type &schema_name() const = 0;
54 virtual void set_schema_name(const String_type &schema_name) = 0;
55
56 /////////////////////////////////////////////////////////////////////////
57 // table name.
58 /////////////////////////////////////////////////////////////////////////
59
60 virtual const String_type &table_name() const = 0;
61 virtual void set_table_name(const String_type &table_name) = 0;
62
63 /////////////////////////////////////////////////////////////////////////
64 // table_rows.
65 /////////////////////////////////////////////////////////////////////////
66
67 virtual ulonglong table_rows() const = 0;
69
70 /////////////////////////////////////////////////////////////////////////
71 // avg_row_length.
72 /////////////////////////////////////////////////////////////////////////
73
74 virtual ulonglong avg_row_length() const = 0;
76
77 /////////////////////////////////////////////////////////////////////////
78 // data_length.
79 /////////////////////////////////////////////////////////////////////////
80
81 virtual ulonglong data_length() const = 0;
83
84 /////////////////////////////////////////////////////////////////////////
85 // max_data_length.
86 /////////////////////////////////////////////////////////////////////////
87
88 virtual ulonglong max_data_length() const = 0;
90
91 /////////////////////////////////////////////////////////////////////////
92 // index_length.
93 /////////////////////////////////////////////////////////////////////////
94
95 virtual ulonglong index_length() const = 0;
97
98 /////////////////////////////////////////////////////////////////////////
99 // data_free.
100 /////////////////////////////////////////////////////////////////////////
101
102 virtual ulonglong data_free() const = 0;
104
105 /////////////////////////////////////////////////////////////////////////
106 // auto_increment.
107 /////////////////////////////////////////////////////////////////////////
108
109 virtual ulonglong auto_increment() const = 0;
111
112 /////////////////////////////////////////////////////////////////////////
113 // checksum.
114 /////////////////////////////////////////////////////////////////////////
115
116 virtual ulonglong checksum() const = 0;
117 virtual void set_checksum(ulonglong checksum) = 0;
118
119 /////////////////////////////////////////////////////////////////////////
120 // update_time.
121 /////////////////////////////////////////////////////////////////////////
122
123 virtual ulonglong update_time() const = 0;
125
126 /////////////////////////////////////////////////////////////////////////
127 // check_time.
128 /////////////////////////////////////////////////////////////////////////
129
130 virtual ulonglong check_time() const = 0;
132
133 /////////////////////////////////////////////////////////////////////////
134 // cached_time.
135 /////////////////////////////////////////////////////////////////////////
136
137 virtual ulonglong cached_time() const = 0;
139};
140
141///////////////////////////////////////////////////////////////////////////
142
143} // namespace dd
144
145#endif // DD__TABLE_STAT_INCLUDED
Definition: object_keys.h:294
Base class for dictionary objects which has single column integer primary key.
Definition: entity_object.h:47
Definition: table_stat_impl.h:53
Definition: table_stat.h:42
virtual const String_type & table_name() const =0
virtual ulonglong table_rows() const =0
virtual ulonglong cached_time() const =0
virtual void set_cached_time(ulonglong cached_time)=0
virtual const String_type & schema_name() const =0
virtual ulonglong avg_row_length() const =0
virtual ulonglong index_length() const =0
virtual void set_schema_name(const String_type &schema_name)=0
virtual void set_table_rows(ulonglong table_rows)=0
virtual ulonglong max_data_length() const =0
Table_stat_impl Impl
Definition: table_stat.h:44
virtual void set_data_free(ulonglong data_free)=0
virtual ulonglong data_length() const =0
virtual void set_data_length(ulonglong data_length)=0
virtual void set_max_data_length(ulonglong max_data_length)=0
tables::Table_stats DD_table
Definition: table_stat.h:45
virtual void set_update_time(ulonglong update_time)=0
virtual void set_check_time(ulonglong check_time)=0
virtual void set_index_length(ulonglong index_length)=0
virtual ulonglong checksum() const =0
virtual void set_table_name(const String_type &table_name)=0
virtual void set_auto_increment(ulonglong auto_increment)=0
virtual void set_checksum(ulonglong checksum)=0
virtual ulonglong check_time() const =0
virtual ulonglong update_time() const =0
virtual ulonglong data_free() const =0
virtual ulonglong auto_increment() const =0
Composite_char_key Name_key
Definition: table_stat.h:46
virtual void set_avg_row_length(ulonglong avg_row_length)=0
Definition: table_stats.h:44
unsigned long long int ulonglong
Definition: my_inttypes.h:55
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:50