MySQL 8.0.40
Source Code Documentation
|
An abstract PERFORMANCE_SCHEMA table. More...
#include <pfs_engine_table.h>
Public Member Functions | |
int | read_row (TABLE *table, unsigned char *buf, Field **fields) |
Read a table row. More... | |
int | update_row (TABLE *table, const unsigned char *old_buf, unsigned char *new_buf, Field **fields) |
Update a table row. More... | |
int | delete_row (TABLE *table, const unsigned char *buf, Field **fields) |
Delete a row from this table. More... | |
virtual int | rnd_init (bool scan) |
Initialize table scan. More... | |
virtual int | rnd_next ()=0 |
Fetch the next row in this cursor. More... | |
virtual int | index_init (uint idx, bool sorted) |
virtual int | index_read (KEY *key_infos, uint index, const uchar *key, uint key_len, enum ha_rkey_function find_flag) |
Positions an index cursor to the index specified in the handle. More... | |
virtual int | index_read_last (KEY *key_infos, const uchar *key, uint key_len) |
virtual int | index_next () |
Find key in index, read record. More... | |
virtual int | index_next_same (const uchar *key, uint key_len) |
Reads the next row matching the given key value. More... | |
virtual int | index_prev () |
virtual int | index_first () |
virtual int | index_last () |
virtual int | rnd_pos (const void *pos)=0 |
Fetch a row by position. More... | |
void | get_position (void *ref) |
Get the position of the current row. More... | |
void | set_position (const void *ref) |
Set the table cursor at a given position. More... | |
virtual void | reset_position ()=0 |
Reset the cursor position to the beginning of the table. More... | |
virtual | ~PFS_engine_table ()=default |
Destructor. More... | |
Static Public Member Functions | |
static PFS_engine_table_share * | find_engine_table_share (const char *name) |
Find a table share by name. More... | |
Protected Member Functions | |
virtual int | read_row_values (TABLE *table, unsigned char *buf, Field **fields, bool read_all)=0 |
Read the current row values. More... | |
virtual int | update_row_values (TABLE *table, const unsigned char *old_buf, unsigned char *new_buf, Field **fields) |
Update the current row values. More... | |
virtual int | delete_row_values (TABLE *table, const unsigned char *buf, Field **fields) |
Delete a row. More... | |
PFS_engine_table (const PFS_engine_table_share *share, void *pos) | |
Constructor. More... | |
Protected Attributes | |
const PFS_engine_table_share * | m_share_ptr |
Table share. More... | |
void * | m_pos_ptr |
Opaque pointer to the m_pos position of this cursor. More... | |
time_normalizer * | m_normalizer |
Current normalizer. More... | |
PFS_engine_index_abstract * | m_index |
Current index. More... | |
An abstract PERFORMANCE_SCHEMA table.
Every table implemented in the performance schema schema and storage engine derives from this class.
|
virtualdefault |
Destructor.
|
inlineprotected |
Constructor.
share | table share |
pos | address of the m_pos position member |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in table_accounts, table_data_lock_waits, table_data_locks, table_ees_by_account_by_error, table_ees_by_host_by_error, table_ees_by_thread_by_error, table_ees_by_user_by_error, table_ees_global_by_error, table_error_log, table_esgs_by_account_by_event_name, table_esgs_by_host_by_event_name, table_esgs_by_thread_by_event_name, table_esgs_by_user_by_event_name, table_esgs_global_by_event_name, table_esmh_by_digest, table_esmh_global, table_esms_by_account_by_event_name, table_esms_by_digest, table_esms_by_host_by_event_name, table_esms_by_program, table_esms_by_thread_by_event_name, table_esms_by_user_by_event_name, table_esms_global_by_event_name, table_ets_by_account_by_event_name, table_ets_by_host_by_event_name, table_ets_by_thread_by_event_name, table_ets_by_user_by_event_name, table_ets_global_by_event_name, table_events_stages_current, table_events_stages_history, table_events_statements_current, table_events_statements_history, table_events_transactions_current, table_events_transactions_history, table_events_waits_current, table_events_waits_history, table_events_waits_summary_by_instance, table_ews_by_account_by_event_name, table_ews_by_host_by_event_name, table_ews_by_thread_by_event_name, table_ews_by_user_by_event_name, table_ews_global_by_event_name, table_file_instances, table_file_summary_by_event_name, table_file_summary_by_instance, table_global_status, table_global_variables, table_host_cache, table_hosts, table_metadata_locks, table_mems_by_account_by_event_name, table_mems_by_host_by_event_name, table_mems_by_thread_by_event_name, table_mems_by_user_by_event_name, table_mems_global_by_event_name, table_os_global_by_type, table_persisted_variables, table_plugin_table, table_prepared_stmt_instances, table_processlist, table_replication_applier_configuration, table_replication_applier_status, table_replication_applier_status_by_coordinator, table_replication_applier_status_by_worker, table_replication_connection_configuration, table_replication_connection_status, table_session_connect, table_session_status, table_session_variables, table_setup_actors, table_setup_consumers, table_setup_instruments, table_setup_objects, table_setup_threads, table_socket_instances, table_socket_summary_by_event_name, table_socket_summary_by_instance, table_status_by_account, table_status_by_host, table_status_by_thread, table_status_by_user, table_mutex_instances, table_rwlock_instances, table_cond_instances, table_table_handles, table_threads, table_tiws_by_index_usage, table_tiws_by_table, table_tlws_by_table, table_user_defined_functions, table_users, table_uvar_by_thread, table_variables_by_thread, cursor_by_thread_connect_attr, and table_all_instr.
|
inlinevirtual |
|
inlinevirtual |
Find key in index, read record.
Reimplemented in cursor_by_account, cursor_by_error_log, cursor_by_host, cursor_by_thread, cursor_by_thread_connect_attr, cursor_by_user, table_all_instr, table_data_lock_waits, table_data_locks, table_ees_by_account_by_error, table_ees_by_host_by_error, table_ees_by_thread_by_error, table_ees_by_user_by_error, table_ees_global_by_error, table_esgs_by_account_by_event_name, table_esgs_by_host_by_event_name, table_esgs_by_thread_by_event_name, table_esgs_by_user_by_event_name, table_esgs_global_by_event_name, table_esmh_by_digest, table_esmh_global, table_esms_by_account_by_event_name, table_esms_by_digest, table_esms_by_host_by_event_name, table_esms_by_program, table_esms_by_thread_by_event_name, table_esms_by_user_by_event_name, table_esms_global_by_event_name, table_ets_by_account_by_event_name, table_ets_by_host_by_event_name, table_ets_by_thread_by_event_name, table_ets_by_user_by_event_name, table_ets_global_by_event_name, table_events_stages_current, table_events_stages_history, table_events_statements_current, table_events_statements_history, table_events_transactions_current, table_events_transactions_history, table_events_waits_current, table_events_waits_history, table_ews_by_account_by_event_name, table_ews_by_host_by_event_name, table_ews_by_thread_by_event_name, table_ews_by_user_by_event_name, table_ews_global_by_event_name, table_file_instances, table_file_summary_by_event_name, table_file_summary_by_instance, table_global_status, table_global_variables, table_host_cache, table_metadata_locks, table_mems_by_account_by_event_name, table_mems_by_host_by_event_name, table_mems_by_thread_by_event_name, table_mems_by_user_by_event_name, table_mems_global_by_event_name, table_os_global_by_type, table_persisted_variables, table_plugin_table, table_prepared_stmt_instances, table_replication_applier_configuration, table_replication_applier_status, table_replication_applier_status_by_coordinator, table_replication_applier_status_by_worker, table_replication_connection_configuration, table_replication_connection_status, table_session_connect, table_session_status, table_session_variables, table_setup_actors, table_setup_consumers, table_setup_instruments, table_setup_objects, table_setup_threads, table_socket_instances, table_socket_summary_by_event_name, table_socket_summary_by_instance, table_status_by_account, table_status_by_host, table_status_by_thread, table_status_by_user, table_mutex_instances, table_rwlock_instances, table_cond_instances, table_table_handles, table_tiws_by_index_usage, table_tiws_by_table, table_tlws_by_table, table_user_defined_functions, table_uvar_by_thread, and table_variables_by_thread.
|
inlinevirtual |
|
inlinevirtual |
|
protectedpure virtual |
Read the current row values.
table | Table handle |
buf | row buffer |
fields | Table fields |
read_all | true if all columns are read. |
Implemented in table_accounts, table_binary_log_transaction_compression_stats, table_data_lock_waits, table_data_locks, table_ees_by_account_by_error, table_ees_by_host_by_error, table_ees_by_thread_by_error, table_ees_by_user_by_error, table_ees_global_by_error, table_error_log, table_esgs_by_account_by_event_name, table_esgs_by_host_by_event_name, table_esgs_by_thread_by_event_name, table_esgs_by_user_by_event_name, table_esgs_global_by_event_name, table_esmh_by_digest, table_esmh_global, table_esms_by_account_by_event_name, table_esms_by_digest, table_esms_by_host_by_event_name, table_esms_by_program, table_esms_by_thread_by_event_name, table_esms_by_user_by_event_name, table_esms_global_by_event_name, table_ets_by_account_by_event_name, table_ets_by_host_by_event_name, table_ets_by_thread_by_event_name, table_ets_by_user_by_event_name, table_ets_global_by_event_name, table_events_stages_common, table_events_statements_common, table_events_transactions_common, table_events_waits_common, table_events_waits_summary_by_instance, table_ews_by_account_by_event_name, table_ews_by_host_by_event_name, table_ews_by_thread_by_event_name, table_ews_by_user_by_event_name, table_ews_global_by_event_name, table_file_instances, table_file_summary_by_event_name, table_file_summary_by_instance, table_global_status, table_global_variables, table_host_cache, table_hosts, table_keyring_component_status, table_keyring_keys, table_log_status, table_metadata_locks, table_mems_by_account_by_event_name, table_mems_by_host_by_event_name, table_mems_by_thread_by_event_name, table_mems_by_user_by_event_name, table_mems_global_by_event_name, table_os_global_by_type, table_performance_timers, table_persisted_variables, table_plugin_table, table_prepared_stmt_instances, table_processlist, table_replication_applier_configuration, table_replication_applier_filters, table_replication_applier_global_filters, table_replication_applier_status, table_replication_applier_status_by_coordinator, table_replication_applier_status_by_worker, table_replication_asynchronous_connection_failover, table_replication_connection_configuration, table_replication_connection_status, table_replication_group_member_stats, table_replication_group_members, table_rpl_async_connection_failover_managed, table_session_connect, table_session_status, table_session_variables, table_setup_actors, table_setup_consumers, table_setup_instruments, table_setup_objects, table_setup_threads, table_socket_instances, table_socket_summary_by_event_name, table_socket_summary_by_instance, table_status_by_account, table_status_by_host, table_status_by_thread, table_status_by_user, table_mutex_instances, table_rwlock_instances, table_cond_instances, table_table_handles, table_threads, table_tiws_by_index_usage, table_tiws_by_table, table_tls_channel_status, table_tlws_by_table, table_user_defined_functions, table_users, table_uvar_by_thread, table_variables_by_thread, and table_variables_info.
|
pure virtual |
Reset the cursor position to the beginning of the table.
Implemented in cursor_by_account, cursor_by_error_log, cursor_by_host, cursor_by_thread, cursor_by_thread_connect_attr, cursor_by_user, table_all_instr, table_binary_log_transaction_compression_stats, table_data_lock_waits, table_data_locks, table_ees_by_account_by_error, table_ees_by_host_by_error, table_ees_by_thread_by_error, table_ees_by_user_by_error, table_ees_global_by_error, table_esgs_by_account_by_event_name, table_esgs_by_host_by_event_name, table_esgs_by_thread_by_event_name, table_esgs_by_user_by_event_name, table_esgs_global_by_event_name, table_esmh_by_digest, table_esmh_global, table_esms_by_account_by_event_name, table_esms_by_digest, table_esms_by_host_by_event_name, table_esms_by_program, table_esms_by_thread_by_event_name, table_esms_by_user_by_event_name, table_esms_global_by_event_name, table_ets_by_account_by_event_name, table_ets_by_host_by_event_name, table_ets_by_thread_by_event_name, table_ets_by_user_by_event_name, table_ets_global_by_event_name, table_events_stages_current, table_events_stages_history, table_events_stages_history_long, table_events_statements_current, table_events_statements_history, table_events_statements_history_long, table_events_transactions_current, table_events_transactions_history, table_events_transactions_history_long, table_events_waits_current, table_events_waits_history, table_events_waits_history_long, table_ews_by_account_by_event_name, table_ews_by_host_by_event_name, table_ews_by_thread_by_event_name, table_ews_by_user_by_event_name, table_ews_global_by_event_name, table_file_instances, table_file_summary_by_event_name, table_file_summary_by_instance, table_global_status, table_global_variables, table_host_cache, table_keyring_component_status, table_keyring_keys, table_log_status, table_metadata_locks, table_mems_by_account_by_event_name, table_mems_by_host_by_event_name, table_mems_by_thread_by_event_name, table_mems_by_user_by_event_name, table_mems_global_by_event_name, table_os_global_by_type, table_performance_timers, table_persisted_variables, table_plugin_table, table_prepared_stmt_instances, table_replication_applier_configuration, table_replication_applier_filters, table_replication_applier_global_filters, table_replication_applier_status, table_replication_applier_status_by_coordinator, table_replication_applier_status_by_worker, table_replication_asynchronous_connection_failover, table_replication_connection_configuration, table_replication_connection_status, table_replication_group_member_stats, table_replication_group_members, table_rpl_async_connection_failover_managed, table_session_status, table_session_variables, table_setup_actors, table_setup_consumers, table_setup_instruments, table_setup_objects, table_setup_threads, table_socket_instances, table_socket_summary_by_event_name, table_socket_summary_by_instance, table_status_by_account, table_status_by_host, table_status_by_thread, table_status_by_user, table_mutex_instances, table_rwlock_instances, table_cond_instances, table_table_handles, table_tiws_by_index_usage, table_tiws_by_table, table_tls_channel_status, table_tlws_by_table, table_user_defined_functions, table_uvar_by_thread, table_variables_by_thread, and table_variables_info.
|
inlinevirtual |
Initialize table scan.
Reimplemented in table_ees_by_account_by_error, table_ees_by_host_by_error, table_ees_by_thread_by_error, table_ees_by_user_by_error, table_ees_global_by_error, table_esgs_by_account_by_event_name, table_esgs_by_host_by_event_name, table_esgs_by_thread_by_event_name, table_esgs_by_user_by_event_name, table_esgs_global_by_event_name, table_esms_by_account_by_event_name, table_esms_by_host_by_event_name, table_esms_by_thread_by_event_name, table_esms_by_user_by_event_name, table_esms_global_by_event_name, table_ets_by_account_by_event_name, table_ets_by_host_by_event_name, table_ets_by_thread_by_event_name, table_ets_by_user_by_event_name, table_ets_global_by_event_name, table_events_stages_current, table_events_stages_history, table_events_stages_history_long, table_events_statements_current, table_events_statements_history, table_events_statements_history_long, table_events_transactions_current, table_events_transactions_history, table_events_transactions_history_long, table_global_status, table_global_variables, table_persisted_variables, table_plugin_table, table_processlist, table_replication_asynchronous_connection_failover, table_rpl_async_connection_failover_managed, table_session_status, table_session_variables, table_status_by_account, table_status_by_host, table_status_by_thread, table_status_by_user, table_table_handles, table_tiws_by_index_usage, table_tiws_by_table, table_tlws_by_table, table_variables_by_thread, and table_variables_info.
|
pure virtual |
Fetch the next row in this cursor.
Implemented in cursor_by_account, cursor_by_error_log, cursor_by_host, cursor_by_thread, cursor_by_thread_connect_attr, cursor_by_user, table_all_instr, table_binary_log_transaction_compression_stats, table_data_lock_waits, table_data_locks, table_ees_by_account_by_error, table_ees_by_host_by_error, table_ees_by_thread_by_error, table_ees_by_user_by_error, table_ees_global_by_error, table_esgs_by_account_by_event_name, table_esgs_by_host_by_event_name, table_esgs_by_thread_by_event_name, table_esgs_by_user_by_event_name, table_esgs_global_by_event_name, table_esmh_by_digest, table_esmh_global, table_esms_by_account_by_event_name, table_esms_by_digest, table_esms_by_host_by_event_name, table_esms_by_program, table_esms_by_thread_by_event_name, table_esms_by_user_by_event_name, table_esms_global_by_event_name, table_ets_by_account_by_event_name, table_ets_by_host_by_event_name, table_ets_by_thread_by_event_name, table_ets_by_user_by_event_name, table_ets_global_by_event_name, table_events_stages_current, table_events_stages_history, table_events_stages_history_long, table_events_statements_current, table_events_statements_history, table_events_statements_history_long, table_events_transactions_current, table_events_transactions_history, table_events_transactions_history_long, table_events_waits_current, table_events_waits_history, table_events_waits_history_long, table_ews_by_account_by_event_name, table_ews_by_host_by_event_name, table_ews_by_thread_by_event_name, table_ews_by_user_by_event_name, table_ews_global_by_event_name, table_file_instances, table_file_summary_by_event_name, table_file_summary_by_instance, table_global_status, table_global_variables, table_host_cache, table_keyring_component_status, table_keyring_keys, table_log_status, table_metadata_locks, table_mems_by_account_by_event_name, table_mems_by_host_by_event_name, table_mems_by_thread_by_event_name, table_mems_by_user_by_event_name, table_mems_global_by_event_name, table_os_global_by_type, table_performance_timers, table_persisted_variables, table_plugin_table, table_prepared_stmt_instances, table_replication_applier_configuration, table_replication_applier_filters, table_replication_applier_global_filters, table_replication_applier_status, table_replication_applier_status_by_coordinator, table_replication_applier_status_by_worker, table_replication_asynchronous_connection_failover, table_replication_connection_configuration, table_replication_connection_status, table_replication_group_member_stats, table_replication_group_members, table_rpl_async_connection_failover_managed, table_session_status, table_session_variables, table_setup_actors, table_setup_consumers, table_setup_instruments, table_setup_objects, table_setup_threads, table_socket_instances, table_socket_summary_by_event_name, table_socket_summary_by_instance, table_status_by_account, table_status_by_host, table_status_by_thread, table_status_by_user, table_mutex_instances, table_rwlock_instances, table_cond_instances, table_table_handles, table_tiws_by_index_usage, table_tiws_by_table, table_tls_channel_status, table_tlws_by_table, table_user_defined_functions, table_uvar_by_thread, table_variables_by_thread, and table_variables_info.
|
pure virtual |
Fetch a row by position.
pos | position to fetch |
Implemented in cursor_by_account, cursor_by_error_log, cursor_by_host, cursor_by_thread, cursor_by_thread_connect_attr, cursor_by_user, table_all_instr, table_binary_log_transaction_compression_stats, table_data_lock_waits, table_data_locks, table_ees_by_account_by_error, table_ees_by_host_by_error, table_ees_by_thread_by_error, table_ees_by_user_by_error, table_ees_global_by_error, table_esgs_by_account_by_event_name, table_esgs_by_host_by_event_name, table_esgs_by_thread_by_event_name, table_esgs_by_user_by_event_name, table_esgs_global_by_event_name, table_esmh_by_digest, table_esmh_global, table_esms_by_account_by_event_name, table_esms_by_digest, table_esms_by_host_by_event_name, table_esms_by_program, table_esms_by_thread_by_event_name, table_esms_by_user_by_event_name, table_esms_global_by_event_name, table_ets_by_account_by_event_name, table_ets_by_host_by_event_name, table_ets_by_thread_by_event_name, table_ets_by_user_by_event_name, table_ets_global_by_event_name, table_events_stages_current, table_events_stages_history, table_events_stages_history_long, table_events_statements_current, table_events_statements_history, table_events_statements_history_long, table_events_transactions_current, table_events_transactions_history, table_events_transactions_history_long, table_events_waits_current, table_events_waits_history, table_events_waits_history_long, table_ews_by_account_by_event_name, table_ews_by_host_by_event_name, table_ews_by_thread_by_event_name, table_ews_by_user_by_event_name, table_ews_global_by_event_name, table_file_instances, table_file_summary_by_event_name, table_file_summary_by_instance, table_global_status, table_global_variables, table_host_cache, table_keyring_component_status, table_keyring_keys, table_log_status, table_metadata_locks, table_mems_by_account_by_event_name, table_mems_by_host_by_event_name, table_mems_by_thread_by_event_name, table_mems_by_user_by_event_name, table_mems_global_by_event_name, table_os_global_by_type, table_performance_timers, table_persisted_variables, table_plugin_table, table_prepared_stmt_instances, table_replication_applier_configuration, table_replication_applier_filters, table_replication_applier_global_filters, table_replication_applier_status, table_replication_applier_status_by_coordinator, table_replication_applier_status_by_worker, table_replication_asynchronous_connection_failover, table_replication_connection_configuration, table_replication_connection_status, table_replication_group_member_stats, table_replication_group_members, table_rpl_async_connection_failover_managed, table_session_status, table_session_variables, table_setup_actors, table_setup_consumers, table_setup_instruments, table_setup_objects, table_setup_threads, table_socket_instances, table_socket_summary_by_event_name, table_socket_summary_by_instance, table_status_by_account, table_status_by_host, table_status_by_thread, table_status_by_user, table_mutex_instances, table_rwlock_instances, table_cond_instances, table_table_handles, table_tiws_by_index_usage, table_tiws_by_table, table_tls_channel_status, table_tlws_by_table, table_user_defined_functions, table_uvar_by_thread, table_variables_by_thread, and table_variables_info.
|
protected |
Current index.
|
protected |
Current normalizer.
|
protected |
Opaque pointer to the m_pos
position of this cursor.
|
protected |
Table share.