MySQL 9.0.0
Source Code Documentation
table_stat.h
Go to the documentation of this file.
1/* Copyright (c) 2014, 2024, 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 designed to work 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 either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef DD__TABLE_STAT_INCLUDED
25#define DD__TABLE_STAT_INCLUDED
26
27#include "sql/dd/types/entity_object.h" // dd::Entity_object
28#include "sql/dd/types/entity_object_table.h" // Entity_object_table
29
30namespace dd {
31
32///////////////////////////////////////////////////////////////////////////
33
34class Composite_char_key;
35class Table_stat_impl;
36
37namespace tables {
38class Table_stats;
39}
40
41///////////////////////////////////////////////////////////////////////////
42
43class Table_stat : virtual public Entity_object {
44 public:
48
49 public:
50 /////////////////////////////////////////////////////////////////////////
51 // schema name.
52 /////////////////////////////////////////////////////////////////////////
53
54 virtual const String_type &schema_name() const = 0;
55 virtual void set_schema_name(const String_type &schema_name) = 0;
56
57 /////////////////////////////////////////////////////////////////////////
58 // table name.
59 /////////////////////////////////////////////////////////////////////////
60
61 virtual const String_type &table_name() const = 0;
62 virtual void set_table_name(const String_type &table_name) = 0;
63
64 /////////////////////////////////////////////////////////////////////////
65 // table_rows.
66 /////////////////////////////////////////////////////////////////////////
67
68 virtual ulonglong table_rows() const = 0;
70
71 /////////////////////////////////////////////////////////////////////////
72 // avg_row_length.
73 /////////////////////////////////////////////////////////////////////////
74
75 virtual ulonglong avg_row_length() const = 0;
77
78 /////////////////////////////////////////////////////////////////////////
79 // data_length.
80 /////////////////////////////////////////////////////////////////////////
81
82 virtual ulonglong data_length() const = 0;
84
85 /////////////////////////////////////////////////////////////////////////
86 // max_data_length.
87 /////////////////////////////////////////////////////////////////////////
88
89 virtual ulonglong max_data_length() const = 0;
91
92 /////////////////////////////////////////////////////////////////////////
93 // index_length.
94 /////////////////////////////////////////////////////////////////////////
95
96 virtual ulonglong index_length() const = 0;
98
99 /////////////////////////////////////////////////////////////////////////
100 // data_free.
101 /////////////////////////////////////////////////////////////////////////
102
103 virtual ulonglong data_free() const = 0;
105
106 /////////////////////////////////////////////////////////////////////////
107 // auto_increment.
108 /////////////////////////////////////////////////////////////////////////
109
110 virtual ulonglong auto_increment() const = 0;
112
113 /////////////////////////////////////////////////////////////////////////
114 // checksum.
115 /////////////////////////////////////////////////////////////////////////
116
117 virtual ulonglong checksum() const = 0;
118 virtual void set_checksum(ulonglong checksum) = 0;
119
120 /////////////////////////////////////////////////////////////////////////
121 // update_time.
122 /////////////////////////////////////////////////////////////////////////
123
124 virtual ulonglong update_time() const = 0;
126
127 /////////////////////////////////////////////////////////////////////////
128 // check_time.
129 /////////////////////////////////////////////////////////////////////////
130
131 virtual ulonglong check_time() const = 0;
133
134 /////////////////////////////////////////////////////////////////////////
135 // cached_time.
136 /////////////////////////////////////////////////////////////////////////
137
138 virtual ulonglong cached_time() const = 0;
140};
141
142///////////////////////////////////////////////////////////////////////////
143
144} // namespace dd
145
146#endif // DD__TABLE_STAT_INCLUDED
Definition: object_keys.h:295
Base class for dictionary objects which has single column integer primary key.
Definition: entity_object.h:48
Definition: table_stat_impl.h:54
Definition: table_stat.h:43
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:45
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:46
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:47
virtual void set_avg_row_length(ulonglong avg_row_length)=0
Definition: table_stats.h:45
unsigned long long int ulonglong
Definition: my_inttypes.h:56
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:51