24#ifndef DD__COLUMN_STATISTIC_IMPL_INCLUDED
25#define DD__COLUMN_STATISTIC_IMPL_INCLUDED
48class Open_dictionary_tables_ctx;
148 "COLUMN STATISTIC OBJECT: id= {OID: %lld}, name= %s, "
149 "schema_name= %s, table_name= %s, column_name= %s",
167 placeholder->
set_id(
id());
Kerberos Client Authentication nullptr
Definition: auth_kerberos_client_plugin.cc:251
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
Definition: column_statistics_impl.h:58
const String_type & table_name() const override
Definition: column_statistics_impl.h:100
void set_schema_name(const String_type &schema_name) override
Definition: column_statistics_impl.h:96
const Entity_object_impl * impl() const override
Definition: column_statistics_impl.h:127
Object_id id() const override
The unique dictionary object id.
Definition: column_statistics_impl.h:131
Column_statistics_impl(const Column_statistics_impl &column_statistics)
Definition: column_statistics_impl.h:66
void set_histogram(const histograms::Histogram *histogram) override
Definition: column_statistics_impl.h:116
const String_type & name() const override
Definition: column_statistics_impl.h:137
const String_type & schema_name() const override
Definition: column_statistics_impl.h:94
Entity_object_impl * impl() override
Definition: column_statistics_impl.h:125
const histograms::Histogram * histogram() const override
Definition: column_statistics_impl.h:112
bool store_attributes(Raw_record *r) override
Definition: column_statistics_impl.cc:131
bool validate() const override
Definition: column_statistics_impl.h:84
String_type m_table_name
Definition: column_statistics_impl.h:157
const String_type & column_name() const override
Definition: column_statistics_impl.h:106
bool deserialize(Sdi_rcontext *rctx, const RJ_Value &val) override
Re-establishes the state of *this by reading sdi information from the rapidjson DOM subobject provide...
Definition: column_statistics_impl.cc:174
void serialize(Sdi_wcontext *wctx, Sdi_writer *w) const override
Converts *this into json.
Definition: column_statistics_impl.cc:153
Column_statistics_impl()
Definition: column_statistics_impl.h:60
static void register_tables(Open_dictionary_tables_ctx *otx)
Definition: column_statistics_impl.cc:210
bool restore_attributes(const Raw_record &r) override
Definition: column_statistics_impl.cc:103
const histograms::Histogram * m_histogram
Definition: column_statistics_impl.h:159
void set_column_name(const String_type &column_name) override
Definition: column_statistics_impl.h:108
Column_statistics * clone() const override
Definition: column_statistics_impl.h:161
void set_table_name(const String_type &table_name) override
Definition: column_statistics_impl.h:102
String_type m_schema_name
Definition: column_statistics_impl.h:156
void set_name(const String_type &name) override
Definition: column_statistics_impl.h:141
Column_statistics * clone_dropped_object_placeholder() const override
Allocate a new object which can serve as a placeholder for the original object in the Dictionary_clie...
Definition: column_statistics_impl.h:165
bool is_persistent() const override
Is dictionary object persistent in dictionary tables ?
Definition: column_statistics_impl.h:133
void debug_print(String_type &outb) const override
Definition: column_statistics_impl.h:145
String_type m_column_name
Definition: column_statistics_impl.h:158
const Object_table & object_table() const override
Definition: column_statistics_impl.cc:204
Definition: column_statistics.h:53
MEM_ROOT m_mem_root
MEM_ROOT on which the histogram data is allocated.
Definition: column_statistics.h:56
Definition: entity_object_impl.h:44
void set_name(const String_type &name) override
Definition: entity_object_impl.h:62
void set_id(Object_id id)
Definition: entity_object_impl.h:51
Object_id id() const override
The unique dictionary object id.
Definition: entity_object_impl.h:49
const String_type & name() const override
Definition: entity_object_impl.h:60
Entity_object_impl * impl() override
Definition: entity_object_impl.h:68
bool is_persistent() const override
Is dictionary object persistent in dictionary tables ?
Definition: entity_object_impl.h:57
This class represents all data dictionary table like mysql.tables, mysql.columns and more.
Definition: object_table.h:72
Auxiliary class for opening dictionary tables.
Definition: transaction_impl.h:76
Definition: raw_record.h:46
Opaque context which keeps reusable resoureces needed during deserialization.
Definition: sdi.cc:231
Opaque context which keeps reusable resources needed during serialization.
Definition: sdi.cc:129
Base class for all data dictionary objects.
Definition: weak_object.h:42
Histogram base class.
Definition: histogram.h:314
MEM_ROOT * get_mem_root() const
Definition: histogram.h:530
This file follows Google coding style, except for the name MEM_ROOT (which is kept for historical rea...
Some integer typedefs for easier portability.
Common header for many mysys elements.
static bool column_statistics
Definition: mysqldump.cc:141
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
RJ_Writer Sdi_writer
Alias for the rapidjson Writer type to use in serialization.
Definition: sdi_fwd.h:64
unsigned long long Object_id
Definition: object_id.h:31
rapidjson::GenericValue< RJ_Encoding, RJ_Allocator > RJ_Value
Definition: sdi_fwd.h:49
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:51
const mysql_service_registry_t * r
Definition: pfs_example_plugin_employee.cc:86
PSI_memory_key key_memory_DD_column_statistics
Definition: psi_memory_key.cc:38
This header provides Rapidjson Type Aliases.
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:83
void Clear()
Deallocate all the RAM used.
Definition: my_alloc.cc:172