MySQL 8.0.40
Source Code Documentation
|
#include <column_statistics_impl.h>
Public Member Functions | |
Column_statistics_impl () | |
const Object_table & | object_table () const override |
bool | validate () const override |
bool | store_attributes (Raw_record *r) override |
bool | restore_attributes (const Raw_record &r) override |
void | serialize (Sdi_wcontext *wctx, Sdi_writer *w) const override |
Converts *this into json. More... | |
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 provided. More... | |
const String_type & | schema_name () const override |
void | set_schema_name (const String_type &schema_name) override |
const String_type & | table_name () const override |
void | set_table_name (const String_type &table_name) override |
const String_type & | column_name () const override |
void | set_column_name (const String_type &column_name) override |
const histograms::Histogram * | histogram () const override |
void | set_histogram (const histograms::Histogram *histogram) override |
Entity_object_impl * | impl () override |
const Entity_object_impl * | impl () const override |
Object_id | id () const override |
The unique dictionary object id. More... | |
bool | is_persistent () const override |
Is dictionary object persistent in dictionary tables ? More... | |
const String_type & | name () const override |
void | set_name (const String_type &name) override |
void | debug_print (String_type &outb) const override |
Public Member Functions inherited from dd::Entity_object_impl | |
Entity_object_impl () | |
Object_id | id () const override |
The unique dictionary object id. More... | |
void | set_id (Object_id id) |
bool | is_persistent () const override |
Is dictionary object persistent in dictionary tables ? More... | |
const String_type & | name () const override |
void | set_name (const String_type &name) override |
Object_key * | create_primary_key () const override |
bool | has_new_primary_key () const override |
Indicates that object is guaranteed to have primary key value which doesn't exist in database (e.g. More... | |
Entity_object_impl * | impl () override |
const Entity_object_impl * | impl () const override |
Public Member Functions inherited from dd::Weak_object | |
Weak_object ()=default | |
Weak_object (const Weak_object &)=default | |
virtual | ~Weak_object ()=default |
Public Member Functions inherited from dd::Weak_object_impl_< use_pfs > | |
Weak_object_impl_ ()=default | |
~Weak_object_impl_ () override=default | |
void * | operator new (size_t size, const std::nothrow_t &nt) noexcept |
void | operator delete (void *ptr, const std::nothrow_t &nt) noexcept |
void * | operator new (size_t size) noexcept |
void | operator delete (void *ptr) noexcept |
virtual bool | store (Open_dictionary_tables_ctx *otx) |
Store the DD object into DD table. More... | |
bool | drop (Open_dictionary_tables_ctx *otx) const |
Drop the DD object from DD table. More... | |
virtual bool | restore_children (Open_dictionary_tables_ctx *) |
virtual bool | store_children (Open_dictionary_tables_ctx *) |
virtual bool | drop_children (Open_dictionary_tables_ctx *) const |
Public Member Functions inherited from dd::Column_statistics | |
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 | |
String_type | create_name () const |
void | create_mdl_key (MDL_key *key) const |
Static Public Member Functions | |
static void | register_tables (Open_dictionary_tables_ctx *otx) |
Static Public Member Functions inherited from dd::Column_statistics | |
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) |
Private Member Functions | |
Column_statistics_impl (const Column_statistics_impl &column_statistics) | |
Column_statistics * | clone () const override |
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_client's dropped registry. More... | |
Private Attributes | |
String_type | m_schema_name |
String_type | m_table_name |
String_type | m_column_name |
const histograms::Histogram * | m_histogram |
Additional Inherited Members | |
Public Types inherited from dd::Column_statistics | |
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 |
Protected Member Functions inherited from dd::Entity_object_impl | |
void | set_primary_key_value (const Raw_new_record &r) override |
void | fix_has_new_primary_key () override |
void | restore_id (const Raw_record &r, int field_idx) |
void | restore_name (const Raw_record &r, int field_idx) |
bool | store_id (Raw_record *r, int field_idx) |
bool | store_name (Raw_record *r, int field_idx) |
bool | store_name (Raw_record *r, int field_idx, bool is_null) |
void | serialize (Sdi_wcontext *wctx, Sdi_writer *w) const |
bool | deserialize (Sdi_rcontext *rctx, const RJ_Value &val) |
Entity_object_impl (const Entity_object_impl &src) | |
Protected Member Functions inherited from dd::Weak_object_impl_< use_pfs > | |
bool | check_parent_consistency (Entity_object_impl *parent, Object_id parent_id) const |
Protected Attributes inherited from dd::Column_statistics | |
MEM_ROOT | m_mem_root |
MEM_ROOT on which the histogram data is allocated. More... | |
|
inline |
|
inlineprivate |
|
inlineoverrideprivatevirtual |
Implements dd::Column_statistics.
|
inlineoverrideprivatevirtual |
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.
Implements dd::Column_statistics.
|
inlineoverridevirtual |
Implements dd::Column_statistics.
|
inlineoverridevirtual |
Implements dd::Weak_object.
|
overridevirtual |
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.
rctx | stores book-keeping information for the deserialization process |
val | subobject of rapidjson DOM containing json representation of this object |
Implements dd::Column_statistics.
|
inlineoverridevirtual |
Implements dd::Column_statistics.
|
inlineoverridevirtual |
The unique dictionary object id.
Implements dd::Entity_object.
|
inlineoverridevirtual |
Implements dd::Entity_object.
|
inlineoverridevirtual |
Implements dd::Entity_object.
|
inlineoverridevirtual |
Is dictionary object persistent in dictionary tables ?
Implements dd::Entity_object.
|
inlineoverridevirtual |
Implements dd::Entity_object.
|
overridevirtual |
Implements dd::Weak_object_impl_< use_pfs >.
|
static |
|
overridevirtual |
Implements dd::Weak_object_impl_< use_pfs >.
|
inlineoverridevirtual |
Implements dd::Column_statistics.
|
overridevirtual |
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.
wctx | opaque context for data needed by serialization |
w | rapidjson writer which will perform conversion to json |
Implements dd::Column_statistics.
|
inlineoverridevirtual |
Implements dd::Column_statistics.
|
inlineoverridevirtual |
Implements dd::Column_statistics.
|
inlineoverridevirtual |
Implements dd::Entity_object.
|
inlineoverridevirtual |
Implements dd::Column_statistics.
|
inlineoverridevirtual |
Implements dd::Column_statistics.
|
overridevirtual |
Implements dd::Weak_object_impl_< use_pfs >.
|
inlineoverridevirtual |
Implements dd::Column_statistics.
|
inlineoverridevirtual |
Implements dd::Weak_object_impl_< use_pfs >.
|
private |
|
private |
|
private |
|
private |