![]() |
MySQL 9.5.0
Source Code Documentation
|
The MOCK storage engine does not actually implement partitioning, but we support the Partition_handler interface in order to be able to access tables that are partitioned in the primary engine. More...
#include <ha_mock.h>
Public Member Functions | |
| FakePartitionHandler (const handler *engine) | |
| void | get_dynamic_partition_info (ha_statistics *stat_info, ha_checksum *check_sum, uint part_id) override |
| Get dynamic table information from partition. More... | |
| void | set_part_info (partition_info *, bool) override |
| Set the partition info object to be used by the handler. More... | |
| enum row_type | get_partition_row_type (const dd::Table *, uint) override |
| Get partition row type from SE. More... | |
Public Member Functions inherited from Partition_handler | |
| Partition_handler ()=default | |
| virtual | ~Partition_handler ()=default |
| virtual int | get_default_num_partitions (HA_CREATE_INFO *info) |
| Get default number of partitions. More... | |
| virtual void | set_auto_partitions (partition_info *part_info) |
| Setup auto partitioning. More... | |
| virtual bool | get_num_parts (const char *name, uint *num_parts) |
| Get number of partitions for table in SE. More... | |
| int | truncate_partition (dd::Table *table_def) |
| Truncate partitions. More... | |
| int | exchange_partition (uint part_id, dd::Table *part_table_def, dd::Table *swap_table_def) |
| Exchange partition. More... | |
| virtual uint | alter_flags (uint flags) const |
| Alter flags. More... | |
Private Attributes | |
| const handler * | m_engine |
The MOCK storage engine does not actually implement partitioning, but we support the Partition_handler interface in order to be able to access tables that are partitioned in the primary engine.
|
inlineexplicit |
|
inlineoverridevirtual |
Get dynamic table information from partition.
| [out] | stat_info | Statistics struct to fill in. |
| [out] | check_sum | Check sum value to fill in if supported. |
| [in] | part_id | Partition to report for. |
Implements Partition_handler.
|
inlineoverridevirtual |
Get partition row type from SE.
| table | partition table |
| part_id | Id of partition for which row type to be retrieved |
Implements Partition_handler.
|
inlineoverridevirtual |
Set the partition info object to be used by the handler.
| part_info | Partition info to be used by the handler. |
| early | True if called when part_info only created and parsed, but not setup, checked or fixed. |
Implements Partition_handler.
|
private |