#include <log_event.h>
◆ Key_compare()
Rows_log_event::Key_compare::Key_compare |
( |
KEY ** |
ki = nullptr | ) |
|
|
inline |
- Parameters
-
ki | Where to find KEY description |
- Note
- 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.
◆ operator()()
bool Rows_log_event::Key_compare::operator() |
( |
uchar * |
k1, |
|
|
uchar * |
k2 |
|
) |
| const |
|
inline |
◆ m_key_info
KEY** Rows_log_event::Key_compare::m_key_info |
|
private |
The documentation for this class was generated from the following file: