![]() |
MySQL 9.5.0
Source Code Documentation
|
Structure for reporting duplicate records. More...
#include <ddl0ddl.h>
Public Member Functions | |
| Dup ()=default | |
| Dup (dict_index_t *index, TABLE *table, const ulint *col_map, size_t n_dup) | |
| Constructor. More... | |
| void | report (const dfield_t *entry) noexcept |
| Report a duplicate key. More... | |
| void | report () noexcept |
| Report a duplicate key, saved in m_entry member. More... | |
| void | report (const mrec_t *entry, const ulint *offsets) noexcept |
| Report a duplicate key. More... | |
| bool | empty () const noexcept |
| void | save_duplicate (const dfield_t *entry) |
| Save the duplicate tuple information. More... | |
Public Attributes | |
| dict_index_t * | m_index {} |
| Index being sorted. More... | |
| TABLE * | m_table {} |
| MySQL table object. More... | |
| const ulint * | m_col_map {} |
| Mapping of column numbers in table to the rebuilt table (index->table), or NULL if not rebuilding table. More... | |
| size_t | m_n_dup {} |
| Number of duplicates. More... | |
Private Attributes | |
| const dfield_t * | m_entry {nullptr} |
| The duplicate tuple of index m_index. More... | |
Structure for reporting duplicate records.
|
default |
|
inline |
Constructor.
| [in] | index | the index being sorted. |
| [in] | table | MySQL table, for reporting duplicate key value, if applicable |
| [in] | col_map | Mapping of old column numbers to new ones, or nullptr if old_table == new_table |
| [in] | n_dup | number of duplicates. |
|
inlinenoexcept |
|
noexcept |
Report a duplicate key, saved in m_entry member.
This function will report the duplicate key to the m_table->record[0]. Care needs to be taken when multiple threads call this function, which could result in corruption of the record in m_table->record[0].
|
noexcept |
Report a duplicate key.
This function will report the duplicate key to the m_table->record[0]. Care needs to be taken when multiple threads call this function, which could result in corruption of the record in m_table->record[0].
| [in] | entry | the duplicate key. |
Report a duplicate key.
This function will report the duplicate key to the m_table->record[0]. Care needs to be taken when multiple threads call this function, which could result in corruption of the record in m_table->record[0].
| [in] | entry | the duplicate key. |
| [in] | offsets | Row offsets |
|
inline |
Save the duplicate tuple information.
| [in] | entry | duplicate tuple of index m_index |
| const ulint* ddl::Dup::m_col_map {} |
Mapping of column numbers in table to the rebuilt table (index->table), or NULL if not rebuilding table.
| dict_index_t* ddl::Dup::m_index {} |
Index being sorted.
| size_t ddl::Dup::m_n_dup {} |
Number of duplicates.
| TABLE* ddl::Dup::m_table {} |
MySQL table object.