23#ifndef DD__COLUMN_STATISTIC_INCLUDED
24#define DD__COLUMN_STATISTIC_INCLUDED
41class Column_statistics_impl;
47class Column_statistics;
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:33
Definition: column_statistics_impl.h:57
Definition: column_statistics.h:52
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:76
virtual void set_schema_name(const String_type &schema_name)=0
bool update_name_key(Name_key *key) const
Definition: column_statistics.h:70
MEM_ROOT m_mem_root
MEM_ROOT on which the histogram data is allocated.
Definition: column_statistics.h:55
bool update_id_key(Id_key *key) const
Definition: column_statistics.h:66
Column_statistics_impl Impl
Definition: column_statistics.h:58
Item_name_key Name_key
Definition: column_statistics.h:62
virtual void set_column_name(const String_type &column_name)=0
tables::Column_statistics DD_table
Definition: column_statistics.h:60
Void_key Aux_key
Definition: column_statistics.h:63
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:59
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:138
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:80
virtual const String_type & schema_name() const =0
String_type create_name() const
Definition: column_statistics.h:129
virtual Column_statistics * clone() const =0
Primary_id_key Id_key
Definition: column_statistics.h:61
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:47
virtual const String_type & name() const =0
Definition: object_keys.h:165
Definition: object_keys.h:76
Opaque context which keeps reusable resoureces needed during deserialization.
Definition: sdi.cc:230
Opaque context which keeps reusable resources needed during serialization.
Definition: sdi.cc:128
Definition: object_keys.h:53
Definition: column_statistics.h:42
Histogram base class.
Definition: histogram.h:291
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:42
RJ_Writer Sdi_writer
Alias for the rapidjson Writer type to use in serialization.
Definition: sdi_fwd.h:63
unsigned long long Object_id
Definition: object_id.h:30
rapidjson::GenericValue< RJ_Encoding, RJ_Allocator > RJ_Value
Definition: sdi_fwd.h:48
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:50
Definition: column_statistics.h:33
required string key
Definition: replication_asynchronous_connection_failover.proto:59
This header provides Rapidjson Type Aliases.
Metadata lock object key.
Definition: mdl.h:364
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:82