MySQL 8.4.2
Source Code Documentation
column_statistics.h
Go to the documentation of this file.
1/* Copyright (c) 2017, 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__COLUMN_STATISTICS_INCLUDED
25#define DD_TABLES__COLUMN_STATISTICS_INCLUDED
26
28#include "sql/dd/object_id.h" // Object_id
29#include "sql/dd/string_type.h"
31
32namespace dd {
33
34class Dictionary_object;
35class Item_name_key;
36class Object_key;
37class Raw_record;
38
39namespace tables {
40
41///////////////////////////////////////////////////////////////////////////
42
44 public:
45 static const Column_statistics &instance();
46
48 FIELD_ID = static_cast<uint>(Common_field::ID),
56 NUMBER_OF_FIELDS // Always keep this entry at the end of the enum
57 };
58
60 INDEX_PK_ID = static_cast<uint>(Common_index::PK_ID),
63 };
64
66
68
70 const Raw_record &) const override;
71
72 static bool update_object_key(Item_name_key *key, Object_id catalog_id,
73 const String_type &name);
74
76};
77
78///////////////////////////////////////////////////////////////////////////
79
80} // namespace tables
81} // namespace dd
82
83#endif // DD_TABLES__COLUMN_STATISTICS_INCLUDED
Definition: column_statistics.h:53
Definition: entity_object_table_impl.h:46
const String_type & name() const override
Get the table name used by the target definition for the dictionary table.
Definition: entity_object_table_impl.h:56
Definition: object_keys.h:166
Definition: object_key.h:38
Definition: raw_record.h:46
Definition: column_statistics.h:43
enum_foreign_keys
Definition: column_statistics.h:65
@ FK_CATALOG_ID
Definition: column_statistics.h:65
static bool update_object_key(Item_name_key *key, Object_id catalog_id, const String_type &name)
Definition: column_statistics.cc:97
enum_indexes
Definition: column_statistics.h:59
@ INDEX_UK_CATALOG_ID_NAME
Definition: column_statistics.h:61
@ INDEX_UK_CATALOG_ID_SCHEMA_NAME_TABLE_NAME_COLUMN_NAME
Definition: column_statistics.h:62
@ INDEX_PK_ID
Definition: column_statistics.h:60
static const Column_statistics & instance()
Definition: column_statistics.cc:43
enum_fields
Definition: column_statistics.h:47
@ FIELD_CATALOG_ID
Definition: column_statistics.h:49
@ FIELD_HISTOGRAM
Definition: column_statistics.h:54
@ FIELD_NAME
Definition: column_statistics.h:50
@ FIELD_OPTIONS
Definition: column_statistics.h:55
@ FIELD_SCHEMA_NAME
Definition: column_statistics.h:51
@ NUMBER_OF_FIELDS
Definition: column_statistics.h:56
@ FIELD_COLUMN_NAME
Definition: column_statistics.h:53
@ FIELD_TABLE_NAME
Definition: column_statistics.h:52
@ FIELD_ID
Definition: column_statistics.h:48
dd::Column_statistics * create_entity_object(const Raw_record &) const override
Definition: column_statistics.cc:92
Column_statistics()
Definition: column_statistics.cc:50
static Object_key * create_key_by_catalog_id(Object_id catalog_id)
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
unsigned long long Object_id
Definition: object_id.h:31
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:51
required string key
Definition: replication_asynchronous_connection_failover.proto:60