MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PFS_engine_table Class Reference

#include <pfs_engine_table.h>

Inheritance diagram for PFS_engine_table:
Collaboration diagram for PFS_engine_table:

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 Stringget_field_char_utf8 (Field *f, String *val)
static Stringget_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_sharem_share_ptr
void * m_pos_ptr
time_normalizerm_normalizer
enum PFS_class_type m_class_type

Detailed Description

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.

Constructor & Destructor Documentation

virtual PFS_engine_table::~PFS_engine_table ( )
inlinevirtual

Destructor.

Definition at line 80 of file pfs_engine_table.h.

PFS_engine_table::PFS_engine_table ( const PFS_engine_table_share share,
void *  pos 
)
inlineprotected

Constructor.

Parameters
sharetable share
posaddress of the m_pos position member

Definition at line 184 of file pfs_engine_table.h.

Member Function Documentation

virtual void PFS_engine_table::reset_position ( void  )
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.

Here is the caller graph for this function:

virtual int PFS_engine_table::rnd_next ( void  )
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.

Here is the caller graph for this function:

virtual int PFS_engine_table::rnd_pos ( const void *  pos)
pure virtual

Fetch a row by position.

Parameters
posposition 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.

Here is the caller graph for this function:

Member Data Documentation

enum PFS_class_type PFS_engine_table::m_class_type
protected

Current class type

Definition at line 196 of file pfs_engine_table.h.

time_normalizer* PFS_engine_table::m_normalizer
protected

Current normalizer

Definition at line 194 of file pfs_engine_table.h.

void* PFS_engine_table::m_pos_ptr
protected

Opaque pointer to the m_pos position of this cursor.

Definition at line 192 of file pfs_engine_table.h.

const PFS_engine_table_share* PFS_engine_table::m_share_ptr
protected

Table share.

Definition at line 190 of file pfs_engine_table.h.


The documentation for this class was generated from the following files: