MySQL 8.0.33
Source Code Documentation
index_stat.h
Go to the documentation of this file.
1/* Copyright (c) 2014, 2023, 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__INDEX_STAT_INCLUDED
24#define DD__INDEX_STAT_INCLUDED
25
26#include "sql/dd/types/entity_object.h" // Entity_object
27#include "sql/dd/types/entity_object_table.h" // Entity_object_table
28
29namespace dd {
30
31///////////////////////////////////////////////////////////////////////////
32
33class Composite_4char_key;
34class Index_stat_impl;
35
36namespace tables {
37class Index_stats;
38}
39
40///////////////////////////////////////////////////////////////////////////
41
42class Index_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 // index name.
65 /////////////////////////////////////////////////////////////////////////
66
67 virtual const String_type &index_name() const = 0;
68 virtual void set_index_name(const String_type &index_name) = 0;
69
70 /////////////////////////////////////////////////////////////////////////
71 // column name.
72 /////////////////////////////////////////////////////////////////////////
73
74 virtual const String_type &column_name() const = 0;
75 virtual void set_column_name(const String_type &column_name) = 0;
76
77 /////////////////////////////////////////////////////////////////////////
78 // cardinality.
79 /////////////////////////////////////////////////////////////////////////
80
81 virtual ulonglong cardinality() const = 0;
83
84 /////////////////////////////////////////////////////////////////////////
85 // cached_time.
86 /////////////////////////////////////////////////////////////////////////
87
88 virtual ulonglong cached_time() const = 0;
90};
91
92///////////////////////////////////////////////////////////////////////////
93
94} // namespace dd
95
96#endif // DD__INDEX_STAT_INCLUDED
Definition: object_keys.h:322
Base class for dictionary objects which has single column integer primary key.
Definition: entity_object.h:47
Definition: index_stat_impl.h:51
Definition: index_stat.h:42
Index_stat_impl Impl
Definition: index_stat.h:44
tables::Index_stats DD_table
Definition: index_stat.h:45
virtual const String_type & table_name() const =0
virtual ulonglong cached_time() const =0
virtual const String_type & schema_name() const =0
virtual const String_type & column_name() const =0
virtual void set_cached_time(ulonglong cached_time)=0
virtual const String_type & index_name() const =0
virtual void set_column_name(const String_type &column_name)=0
virtual void set_cardinality(ulonglong cardinality)=0
Composite_4char_key Name_key
Definition: index_stat.h:46
virtual ulonglong cardinality() const =0
virtual void set_index_name(const String_type &index_name)=0
virtual void set_schema_name(const String_type &schema_name)=0
virtual void set_table_name(const String_type &table_name)=0
Definition: index_stats.h:42
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