MySQL 8.4.1
Source Code Documentation
index_stats.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_TABLES__INDEX_STATS_INCLUDED
25#define DD_TABLES__INDEX_STATS_INCLUDED
26
27#include <new>
28
31#include "sql/dd/string_type.h" // dd::String_type
33
34namespace dd {
35
36class Object_key;
37class Raw_record;
38
39namespace tables {
40
41///////////////////////////////////////////////////////////////////////////
42
43class Index_stats : virtual public Entity_object_table_impl {
44 public:
46
47 static const Index_stats &instance();
48
56 NUMBER_OF_FIELDS // Always keep this entry at the end of the enum
57 };
58
60
62
63 Index_stat *create_entity_object(const Raw_record &) const override {
64 return new (std::nothrow) Index_stat_impl();
65 }
66
68 const String_type &schema_name, const String_type &table_name,
69 const String_type &index_name, const String_type &column_name);
70
72 const String_type &schema_name, const String_type &table_name);
73};
74
75} // namespace tables
76} // namespace dd
77
78#endif // DD_TABLES__INDEX_STATS_INCLUDED
Definition: object_keys.h:323
Definition: entity_object_table_impl.h:46
Definition: index_stat_impl.h:52
Definition: index_stat.h:43
Definition: object_key.h:38
Definition: raw_record.h:46
Definition: index_stats.h:43
static Index_stat::Name_key * create_object_key(const String_type &schema_name, const String_type &table_name, const String_type &index_name, const String_type &column_name)
Definition: index_stats.cc:66
Index_stats()
Definition: index_stats.cc:35
enum_fields
Definition: index_stats.h:49
@ FIELD_TABLE_NAME
Definition: index_stats.h:51
@ FIELD_INDEX_NAME
Definition: index_stats.h:52
@ FIELD_SCHEMA_NAME
Definition: index_stats.h:50
@ FIELD_CACHED_TIME
Definition: index_stats.h:55
@ FIELD_CARDINALITY
Definition: index_stats.h:54
@ FIELD_COLUMN_NAME
Definition: index_stats.h:53
@ NUMBER_OF_FIELDS
Definition: index_stats.h:56
enum_indexes
Definition: index_stats.h:59
@ INDEX_UK_SCHEMA_TABLE_INDEX_COLUMN
Definition: index_stats.h:59
static const Index_stats & instance()
Definition: index_stats.cc:59
Index_stat * create_entity_object(const Raw_record &) const override
Definition: index_stats.h:63
static Object_key * create_range_key_by_table_name(const String_type &schema_name, const String_type &table_name)
Definition: index_stats.cc:77
enum_foreign_keys
Definition: index_stats.h:61
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
const char * table_name
Definition: rules_table_service.cc:56