MySQL 9.0.0
Source Code Documentation
dd::Column_statistics Class Referenceabstract

#include <column_statistics.h>

Inheritance diagram for dd::Column_statistics:
[legend]

Public Types

typedef Column_statistics_impl Impl
 
typedef Column_statistics Cache_partition
 
typedef tables::Column_statistics DD_table
 
typedef Primary_id_key Id_key
 
typedef Item_name_key Name_key
 
typedef Void_key Aux_key
 

Public Member Functions

bool update_id_key (Id_key *key) const
 
bool update_name_key (Name_key *key) const
 
bool update_aux_key (Aux_key *) const
 
 ~Column_statistics () override=default
 
virtual const String_typeschema_name () const =0
 
virtual void set_schema_name (const String_type &schema_name)=0
 
virtual const String_typetable_name () const =0
 
virtual void set_table_name (const String_type &table_name)=0
 
virtual const String_typecolumn_name () const =0
 
virtual void set_column_name (const String_type &column_name)=0
 
virtual const histograms::Histogramhistogram () const =0
 
virtual void set_histogram (const histograms::Histogram *histogram)=0
 
virtual void serialize (Sdi_wcontext *wctx, Sdi_writer *w) const =0
 Converts *this into json. More...
 
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 provided. More...
 
String_type create_name () const
 
void create_mdl_key (MDL_key *key) const
 
virtual Column_statisticsclone () const =0
 
virtual Column_statisticsclone_dropped_object_placeholder () const =0
 Allocate a new object which can serve as a placeholder for the original object in the Dictionary_client's dropped registry. More...
 
- Public Member Functions inherited from dd::Entity_object
virtual Object_id id () const =0
 The unique dictionary object id. More...
 
virtual bool is_persistent () const =0
 Is dictionary object persistent in dictionary tables ? More...
 
virtual const String_typename () const =0
 
virtual void set_name (const String_type &name)=0
 
- Public Member Functions inherited from dd::Weak_object
virtual void debug_print (String_type &outb) const =0
 
 Weak_object ()=default
 
 Weak_object (const Weak_object &)=default
 
virtual ~Weak_object ()=default
 

Static Public Member Functions

static bool update_id_key (Id_key *key, Object_id id)
 
static bool update_name_key (Name_key *key, const String_type &name)
 
static String_type create_name (const String_type &schema_name, const String_type &table_name, const String_type &column_name)
 
static void create_mdl_key (const String_type &schema_name, const String_type &table_name, const String_type &column_name, MDL_key *key)
 

Protected Attributes

MEM_ROOT m_mem_root
 MEM_ROOT on which the histogram data is allocated. More...
 

Member Typedef Documentation

◆ Aux_key

◆ Cache_partition

◆ DD_table

◆ Id_key

◆ Impl

◆ Name_key

Constructor & Destructor Documentation

◆ ~Column_statistics()

dd::Column_statistics::~Column_statistics ( )
overridedefault

Member Function Documentation

◆ clone()

virtual Column_statistics * dd::Column_statistics::clone ( ) const
pure virtual

Implemented in dd::Column_statistics_impl.

◆ clone_dropped_object_placeholder()

virtual Column_statistics * dd::Column_statistics::clone_dropped_object_placeholder ( ) const
pure virtual

Allocate a new object which can serve as a placeholder for the original object in the Dictionary_client's dropped registry.

Such object has the same keys as the original but has no other info and as result occupies less memory.

Implemented in dd::Column_statistics_impl.

◆ column_name()

virtual const String_type & dd::Column_statistics::column_name ( ) const
pure virtual

Implemented in dd::Column_statistics_impl.

◆ create_mdl_key() [1/2]

void dd::Column_statistics::create_mdl_key ( const String_type schema_name,
const String_type table_name,
const String_type column_name,
MDL_key key 
)
static

◆ create_mdl_key() [2/2]

void dd::Column_statistics::create_mdl_key ( MDL_key key) const
inline

◆ create_name() [1/2]

String_type dd::Column_statistics::create_name ( ) const
inline

◆ create_name() [2/2]

String_type dd::Column_statistics::create_name ( const String_type schema_name,
const String_type table_name,
const String_type column_name 
)
static

◆ deserialize()

virtual bool dd::Column_statistics::deserialize ( Sdi_rcontext rctx,
const RJ_Value val 
)
pure virtual

Re-establishes the state of *this by reading sdi information from the rapidjson DOM subobject provided.

Cross-references encountered within this object are tracked in sdictx, so that they can be updated when the entire object graph has been established.

Parameters
rctxstores book-keeping information for the deserialization process
valsubobject of rapidjson DOM containing json representation of this object

Implemented in dd::Column_statistics_impl.

◆ histogram()

virtual const histograms::Histogram * dd::Column_statistics::histogram ( ) const
pure virtual

Implemented in dd::Column_statistics_impl.

◆ schema_name()

virtual const String_type & dd::Column_statistics::schema_name ( ) const
pure virtual

Implemented in dd::Column_statistics_impl.

◆ serialize()

virtual void dd::Column_statistics::serialize ( Sdi_wcontext wctx,
Sdi_writer w 
) const
pure virtual

Converts *this into json.

Converts all member variables that are to be included in the sdi into json by transforming them appropriately and passing them to the rapidjson writer provided.

Parameters
wctxopaque context for data needed by serialization
wrapidjson writer which will perform conversion to json

Implemented in dd::Column_statistics_impl.

◆ set_column_name()

virtual void dd::Column_statistics::set_column_name ( const String_type column_name)
pure virtual

Implemented in dd::Column_statistics_impl.

◆ set_histogram()

virtual void dd::Column_statistics::set_histogram ( const histograms::Histogram histogram)
pure virtual

Implemented in dd::Column_statistics_impl.

◆ set_schema_name()

virtual void dd::Column_statistics::set_schema_name ( const String_type schema_name)
pure virtual

Implemented in dd::Column_statistics_impl.

◆ set_table_name()

virtual void dd::Column_statistics::set_table_name ( const String_type table_name)
pure virtual

Implemented in dd::Column_statistics_impl.

◆ table_name()

virtual const String_type & dd::Column_statistics::table_name ( ) const
pure virtual

Implemented in dd::Column_statistics_impl.

◆ update_aux_key()

bool dd::Column_statistics::update_aux_key ( Aux_key ) const
inline

◆ update_id_key() [1/2]

bool dd::Column_statistics::update_id_key ( Id_key key) const
inline

◆ update_id_key() [2/2]

bool dd::Column_statistics::update_id_key ( Id_key key,
Object_id  id 
)
static

◆ update_name_key() [1/2]

bool dd::Column_statistics::update_name_key ( Name_key key) const
inline

◆ update_name_key() [2/2]

bool dd::Column_statistics::update_name_key ( Name_key key,
const String_type name 
)
static

Member Data Documentation

◆ m_mem_root

MEM_ROOT dd::Column_statistics::m_mem_root
protected

MEM_ROOT on which the histogram data is allocated.


The documentation for this class was generated from the following files: