24#ifndef DD__COLUMN_STATISTIC_INCLUDED
25#define DD__COLUMN_STATISTIC_INCLUDED
42class Column_statistics_impl;
48class Column_statistics;
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
Definition: column_statistics.h:53
virtual const String_type & table_name() const =0
virtual const histograms::Histogram * histogram() const =0
~Column_statistics() override=default
bool update_aux_key(Aux_key *) const
Definition: column_statistics.h:77
virtual void set_schema_name(const String_type &schema_name)=0
bool update_name_key(Name_key *key) const
Definition: column_statistics.h:71
MEM_ROOT m_mem_root
MEM_ROOT on which the histogram data is allocated.
Definition: column_statistics.h:56
bool update_id_key(Id_key *key) const
Definition: column_statistics.h:67
Column_statistics_impl Impl
Definition: column_statistics.h:59
Item_name_key Name_key
Definition: column_statistics.h:63
virtual void set_column_name(const String_type &column_name)=0
tables::Column_statistics DD_table
Definition: column_statistics.h:61
Void_key Aux_key
Definition: column_statistics.h:64
virtual bool deserialize(Sdi_rcontext *rctx, const RJ_Value &val)=0
Re-establishes the state of *this by reading sdi information from the rapidjson DOM subobject provide...
Column_statistics Cache_partition
Definition: column_statistics.h:60
virtual Column_statistics * clone_dropped_object_placeholder() const =0
Allocate a new object which can serve as a placeholder for the original object in the Dictionary_clie...
virtual void serialize(Sdi_wcontext *wctx, Sdi_writer *w) const =0
Converts *this into json.
void create_mdl_key(MDL_key *key) const
Definition: column_statistics.h:139
virtual void set_table_name(const String_type &table_name)=0
virtual const String_type & column_name() const =0
static void create_mdl_key(const String_type &schema_name, const String_type &table_name, const String_type &column_name, MDL_key *key)
Definition: column_statistics_impl.cc:81
virtual const String_type & schema_name() const =0
String_type create_name() const
Definition: column_statistics.h:130
virtual Column_statistics * clone() const =0
Primary_id_key Id_key
Definition: column_statistics.h:62
virtual void set_histogram(const histograms::Histogram *histogram)=0
Base class for dictionary objects which has single column integer primary key.
Definition: entity_object.h:48
virtual const String_type & name() const =0
Definition: object_keys.h:166
Definition: object_keys.h:77
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
Definition: object_keys.h:54
Definition: column_statistics.h:43
Histogram base class.
Definition: histogram.h:314
This file follows Google coding style, except for the name MEM_ROOT (which is kept for historical rea...
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
Definition: column_statistics.h:34
required string key
Definition: replication_asynchronous_connection_failover.proto:60
This header provides Rapidjson Type Aliases.
Metadata lock object key.
Definition: mdl.h:365
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:83