MySQL 9.1.0
Source Code Documentation
index_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__INDEX_STAT_INCLUDED
25#define DD__INDEX_STAT_INCLUDED
26
27#include "sql/dd/types/entity_object.h" // Entity_object
28#include "sql/dd/types/entity_object_table.h" // Entity_object_table
29
30namespace dd {
31
32///////////////////////////////////////////////////////////////////////////
33
34class Composite_4char_key;
35class Index_stat_impl;
36
37namespace tables {
38class Index_stats;
39}
40
41///////////////////////////////////////////////////////////////////////////
42
43class Index_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 // index name.
66 /////////////////////////////////////////////////////////////////////////
67
68 virtual const String_type &index_name() const = 0;
69 virtual void set_index_name(const String_type &index_name) = 0;
70
71 /////////////////////////////////////////////////////////////////////////
72 // column name.
73 /////////////////////////////////////////////////////////////////////////
74
75 virtual const String_type &column_name() const = 0;
76 virtual void set_column_name(const String_type &column_name) = 0;
77
78 /////////////////////////////////////////////////////////////////////////
79 // cardinality.
80 /////////////////////////////////////////////////////////////////////////
81
82 virtual ulonglong cardinality() const = 0;
84
85 /////////////////////////////////////////////////////////////////////////
86 // cached_time.
87 /////////////////////////////////////////////////////////////////////////
88
89 virtual ulonglong cached_time() const = 0;
91};
92
93///////////////////////////////////////////////////////////////////////////
94
95} // namespace dd
96
97#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:48
Definition: index_stat_impl.h:52
Definition: index_stat.h:43
Index_stat_impl Impl
Definition: index_stat.h:45
tables::Index_stats DD_table
Definition: index_stat.h:46
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:47
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:43
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