MySQL 8.3.0
Source Code Documentation
Rows_log_event::Key_compare Class Reference

#include <log_event.h>

Public Member Functions

 Key_compare (KEY **ki=nullptr)
bool operator() (uchar *k1, uchar *k2) const

Private Attributes

KEY ** m_key_info

Constructor & Destructor Documentation

◆ Key_compare()

Rows_log_event::Key_compare::Key_compare ( KEY **  ki = nullptr)
kiWhere to find KEY description
m_distinct_keys is instantiated when Rows_log_event is constructed; it stores a Key_compare object internally. However at that moment, the index (KEY*) to use for comparisons, is not yet known. So, at instantiation, we indicate the Key_compare the place where it can find the KEY* when needed (this place is Rows_log_event::m_key_info), Key_compare remembers the place in member m_key_info. Before we need to do comparisons - i.e. before we need to insert elements, we update Rows_log_event::m_key_info once for all.

Member Function Documentation

◆ operator()()

bool Rows_log_event::Key_compare::operator() ( uchar k1,
uchar k2 
) const

Member Data Documentation

◆ m_key_info

KEY** Rows_log_event::Key_compare::m_key_info

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