MySQL 9.1.0
Source Code Documentation
|
Helper class for encapsulating new/altered partitions during ADD(HASH/KEY)/COALESCE/REORGANIZE PARTITION. More...
Public Member Functions | |
Altered_partitions (uint parts) | |
Constructor. More... | |
~Altered_partitions () | |
Destructor. More... | |
bool | initialize () |
Initialize the object. More... | |
void | set_part (ulint new_part_id, dict_table_t *part) |
Open and set currently used partition. More... | |
dict_table_t * | part (uint part_id) |
Get lower level internal table object for partition. More... | |
void | prepare_write (row_prebuilt_t *prebuilt, uint new_part_id) const |
To write a row, set up prebuilt for using a specified partition. More... | |
void | finish_write (row_prebuilt_t *prebuilt, uint new_part_id) |
After a write, update cached values for a partition from prebuilt. More... | |
Private Attributes | |
dict_table_t ** | m_new_table_parts |
New partitions created during ADD(HASH/KEY)/COALESCE/REORGANIZE PARTITION. More... | |
ins_node_t ** | m_ins_nodes |
Insert nodes per partition. More... | |
byte * | m_bitset |
bytes for sql_stat_start bitset More... | |
Sql_stat_start_parts | m_sql_stat_start |
sql_stat_start per partition More... | |
trx_id_t * | m_trx_ids |
Trx id per partition. More... | |
size_t | m_num_new_parts |
Number of new partitions. More... | |
Helper class for encapsulating new/altered partitions during ADD(HASH/KEY)/COALESCE/REORGANIZE PARTITION.
Here as many partition slots as in new table would be created, it's OK for ADD/COALESCE PARTITION, however more partition slots would probably be created for REORGANIZE PARTITION. Considering that it's easy to get table in this way, it's still OK.
|
inline |
Constructor.
[in] | parts | total partitions |
Altered_partitions::~Altered_partitions | ( | ) |
Destructor.
|
inline |
After a write, update cached values for a partition from prebuilt.
[in,out] | prebuilt | Prebuilt to copy from. |
[in] | new_part_id | Partition id to copy. |
bool Altered_partitions::initialize | ( | ) |
Initialize the object.
true | on failure |
|
inline |
Get lower level internal table object for partition.
[in] | part_id | Partition id. |
|
inline |
To write a row, set up prebuilt for using a specified partition.
[in,out] | prebuilt | Prebuilt to update. |
[in] | new_part_id | Partition to use. |
|
inline |
Open and set currently used partition.
[in] | new_part_id | Partition id to set. |
[in,out] | part | Internal table object to use. |
|
private |
bytes for sql_stat_start bitset
|
private |
Insert nodes per partition.
|
private |
New partitions created during ADD(HASH/KEY)/COALESCE/REORGANIZE PARTITION.
|
private |
Number of new partitions.
|
private |
sql_stat_start per partition
|
private |
Trx id per partition.