MySQL 5.6.14 Source Code Document
|
#include <pfs_engine_table.h>
Public Member Functions | |
int | read_row (TABLE *table, unsigned char *buf, Field **fields) |
int | update_row (TABLE *table, const unsigned char *old_buf, unsigned char *new_buf, Field **fields) |
int | delete_row (TABLE *table, const unsigned char *buf, Field **fields) |
virtual int | rnd_init (bool scan) |
virtual int | rnd_next (void)=0 |
virtual int | rnd_pos (const void *pos)=0 |
void | get_position (void *ref) |
void | set_position (const void *ref) |
virtual void | reset_position (void)=0 |
void | get_normalizer (PFS_instr_class *instr_class) |
virtual | ~PFS_engine_table () |
Static Public Member Functions | |
static const PFS_engine_table_share * | find_engine_table_share (const char *name) |
static void | set_field_ulong (Field *f, ulong value) |
static void | set_field_ulonglong (Field *f, ulonglong value) |
static void | set_field_char_utf8 (Field *f, const char *str, uint len) |
static void | set_field_varchar_utf8 (Field *f, const char *str, uint len) |
static void | set_field_longtext_utf8 (Field *f, const char *str, uint len) |
static void | set_field_enum (Field *f, ulonglong value) |
static void | set_field_timestamp (Field *f, ulonglong value) |
static ulonglong | get_field_enum (Field *f) |
static String * | get_field_char_utf8 (Field *f, String *val) |
static String * | get_field_varchar_utf8 (Field *f, String *val) |
Protected Member Functions | |
virtual int | read_row_values (TABLE *table, unsigned char *buf, Field **fields, bool read_all)=0 |
virtual int | update_row_values (TABLE *table, const unsigned char *old_buf, unsigned char *new_buf, Field **fields) |
virtual int | delete_row_values (TABLE *table, const unsigned char *buf, Field **fields) |
PFS_engine_table (const PFS_engine_table_share *share, void *pos) |
Protected Attributes | |
const PFS_engine_table_share * | m_share_ptr |
void * | m_pos_ptr |
time_normalizer * | m_normalizer |
enum PFS_class_type | m_class_type |
An abstract PERFORMANCE_SCHEMA table. Every table implemented in the performance schema schema and storage engine derives from this class.
Definition at line 40 of file pfs_engine_table.h.
|
inlinevirtual |
Destructor.
Definition at line 80 of file pfs_engine_table.h.
|
inlineprotected |
Constructor.
share | table share |
pos | address of the m_pos position member |
Definition at line 184 of file pfs_engine_table.h.
|
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_events_statements_common, table_events_waits_common, table_host_cache, table_ews_by_account_by_event_name, table_ews_by_host_by_event_name, table_ews_by_user_by_event_name, table_ews_by_thread_by_event_name, table_esgs_by_user_by_event_name, table_esgs_by_thread_by_event_name, table_esms_by_thread_by_event_name, table_os_global_by_type, table_esgs_by_account_by_event_name, table_esgs_by_host_by_event_name, table_esms_by_account_by_event_name, table_esms_by_host_by_event_name, table_esms_by_user_by_event_name, table_tiws_by_index_usage, table_events_stages_common, table_ews_global_by_event_name, table_setup_instruments, table_threads, table_setup_objects, table_events_waits_summary_by_instance, table_setup_actors, table_session_connect, table_esms_by_digest, table_esgs_global_by_event_name, table_esms_global_by_event_name, table_tiws_by_table, table_tlws_by_table, table_performance_timers, table_setup_consumers, table_setup_timers, table_accounts, table_hosts, and table_users.
|
pure virtual |
Reset the cursor position to the beginning of the table.
Implemented in table_events_statements_history_long, table_events_waits_history_long, table_events_statements_history, table_events_waits_history, table_events_statements_current, table_events_stages_history_long, table_cond_instances, table_events_waits_current, table_events_stages_history, table_events_stages_current, table_rwlock_instances, table_host_cache, table_ews_by_account_by_event_name, table_ews_by_host_by_event_name, table_ews_by_user_by_event_name, table_ews_by_thread_by_event_name, table_esgs_by_user_by_event_name, table_esgs_by_thread_by_event_name, table_esms_by_thread_by_event_name, table_os_global_by_type, table_esgs_by_account_by_event_name, table_esgs_by_host_by_event_name, table_esms_by_account_by_event_name, table_esms_by_host_by_event_name, table_esms_by_user_by_event_name, table_tiws_by_index_usage, table_ews_global_by_event_name, table_setup_instruments, table_all_instr, table_socket_instances, table_setup_objects, table_file_summary_by_instance, table_setup_actors, table_socket_summary_by_instance, table_esms_by_digest, table_mutex_instances, cursor_by_thread_connect_attr, table_esgs_global_by_event_name, table_esms_global_by_event_name, table_socket_summary_by_event_name, table_tiws_by_table, table_tlws_by_table, table_file_summary_by_event_name, table_file_instances, table_performance_timers, table_setup_consumers, table_setup_timers, cursor_by_account, cursor_by_host, cursor_by_thread, and cursor_by_user.
|
inlinevirtual |
Initialize table scan.
Reimplemented in table_events_statements_history_long, table_events_statements_history, table_events_statements_current, table_events_stages_history_long, table_events_stages_history, table_events_stages_current, table_esgs_by_user_by_event_name, table_esgs_by_thread_by_event_name, table_esms_by_thread_by_event_name, table_esgs_by_account_by_event_name, table_esgs_by_host_by_event_name, table_esms_by_account_by_event_name, table_esms_by_host_by_event_name, table_esms_by_user_by_event_name, table_tiws_by_index_usage, table_esgs_global_by_event_name, table_esms_global_by_event_name, table_tiws_by_table, and table_tlws_by_table.
Definition at line 61 of file pfs_engine_table.h.
|
pure virtual |
Fetch the next row in this cursor.
Implemented in table_events_statements_history_long, table_events_waits_history_long, table_events_statements_history, table_events_waits_history, table_events_statements_current, table_events_stages_history_long, table_cond_instances, table_events_waits_current, table_events_stages_history, table_events_stages_current, table_rwlock_instances, table_host_cache, table_ews_by_account_by_event_name, table_ews_by_host_by_event_name, table_ews_by_user_by_event_name, table_ews_by_thread_by_event_name, table_esgs_by_user_by_event_name, table_esgs_by_thread_by_event_name, table_esms_by_thread_by_event_name, table_os_global_by_type, table_esgs_by_account_by_event_name, table_esgs_by_host_by_event_name, table_esms_by_account_by_event_name, table_esms_by_host_by_event_name, table_esms_by_user_by_event_name, table_tiws_by_index_usage, table_ews_global_by_event_name, table_setup_instruments, table_all_instr, table_socket_instances, table_setup_objects, table_file_summary_by_instance, table_setup_actors, table_socket_summary_by_instance, table_esms_by_digest, table_mutex_instances, cursor_by_thread_connect_attr, table_esgs_global_by_event_name, table_esms_global_by_event_name, table_socket_summary_by_event_name, table_tiws_by_table, table_tlws_by_table, table_file_summary_by_event_name, table_file_instances, table_performance_timers, table_setup_consumers, table_setup_timers, cursor_by_account, cursor_by_host, cursor_by_thread, and cursor_by_user.
|
pure virtual |
Fetch a row by position.
pos | position to fetch |
Implemented in table_events_statements_history_long, table_events_waits_history_long, table_events_statements_history, table_events_waits_history, table_events_statements_current, table_events_stages_history_long, table_cond_instances, table_events_waits_current, table_events_stages_history, table_events_stages_current, table_rwlock_instances, table_host_cache, table_ews_by_account_by_event_name, table_ews_by_host_by_event_name, table_ews_by_user_by_event_name, table_ews_by_thread_by_event_name, table_esgs_by_user_by_event_name, table_esgs_by_thread_by_event_name, table_esms_by_thread_by_event_name, table_os_global_by_type, table_esgs_by_account_by_event_name, table_esgs_by_host_by_event_name, table_esms_by_account_by_event_name, table_esms_by_host_by_event_name, table_esms_by_user_by_event_name, table_tiws_by_index_usage, table_ews_global_by_event_name, table_setup_instruments, table_all_instr, table_socket_instances, table_setup_objects, table_file_summary_by_instance, table_setup_actors, table_socket_summary_by_instance, table_esms_by_digest, table_mutex_instances, cursor_by_thread_connect_attr, table_esgs_global_by_event_name, table_esms_global_by_event_name, table_socket_summary_by_event_name, table_tiws_by_table, table_tlws_by_table, table_file_summary_by_event_name, table_file_instances, table_performance_timers, table_setup_consumers, table_setup_timers, cursor_by_account, cursor_by_host, cursor_by_thread, and cursor_by_user.
|
protected |
Current class type
Definition at line 196 of file pfs_engine_table.h.
|
protected |
Current normalizer
Definition at line 194 of file pfs_engine_table.h.
|
protected |
Opaque pointer to the m_pos position of this cursor.
Definition at line 192 of file pfs_engine_table.h.
|
protected |
Table share.
Definition at line 190 of file pfs_engine_table.h.