24#ifndef TABLE_EWS_GLOBAL_BY_EVENT_NAME_H
25#define TABLE_EWS_GLOBAL_BY_EVENT_NAME_H
114 int rnd_pos(
const void *pos)
override;
116 int index_init(uint idx,
bool sorted)
override;
121 bool read_all)
override;
Definition: pfs_engine_table.h:301
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_ews_global_by_event_name.h:54
PFS_index_ews_global_by_event_name()
Definition: table_ews_global_by_event_name.h:56
PFS_key_event_name m_key
Definition: table_ews_global_by_event_name.h:65
virtual bool match(PFS_instr_class *instr_class)
Definition: table_ews_global_by_event_name.cc:88
~PFS_index_ews_global_by_event_name() override=default
virtual bool match_view(uint view)
Definition: table_ews_global_by_event_name.cc:81
Definition: table_helper.h:1474
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Table PERFORMANCE_SCHEMA.EVENTS_WAITS_SUMMARY_GLOBAL_BY_EVENT_NAME.
Definition: table_ews_global_by_event_name.h:103
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_ews_global_by_event_name.cc:120
static Plugin_table m_table_def
Table definition.
Definition: table_ews_global_by_event_name.h:143
int make_rwlock_row(PFS_rwlock_class *klass)
Definition: table_ews_global_by_event_name.cc:412
~table_ews_global_by_event_name() override=default
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_ews_global_by_event_name.cc:125
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_ews_global_by_event_name.cc:503
static int delete_all_rows()
Definition: table_ews_global_by_event_name.cc:102
static ha_rows get_row_count()
Definition: table_ews_global_by_event_name.cc:110
int make_cond_row(PFS_cond_class *klass)
Definition: table_ews_global_by_event_name.cc:422
static PFS_engine_table_share m_share
Table share.
Definition: table_ews_global_by_event_name.h:106
int make_idle_row(PFS_instr_class *klass)
Definition: table_ews_global_by_event_name.cc:473
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_ews_global_by_event_name.cc:202
int make_table_lock_row(PFS_instr_class *klass)
Definition: table_ews_global_by_event_name.cc:452
int make_socket_row(PFS_socket_class *klass)
Definition: table_ews_global_by_event_name.cc:463
static THR_LOCK m_table_lock
Table share lock.
Definition: table_ews_global_by_event_name.h:141
pos_ews_global_by_event_name m_next_pos
Next position.
Definition: table_ews_global_by_event_name.h:150
row_ews_global_by_event_name m_row
Current row.
Definition: table_ews_global_by_event_name.h:146
int make_metadata_row(PFS_instr_class *klass)
Definition: table_ews_global_by_event_name.cc:489
PFS_index_ews_global_by_event_name * m_opened_index
Definition: table_ews_global_by_event_name.h:152
pos_ews_global_by_event_name m_pos
Current position.
Definition: table_ews_global_by_event_name.h:148
int make_table_io_row(PFS_instr_class *klass)
Definition: table_ews_global_by_event_name.cc:442
int index_next() override
Find key in index, read record.
Definition: table_ews_global_by_event_name.cc:279
int index_init(uint idx, bool sorted) override
Definition: table_ews_global_by_event_name.cc:270
int make_mutex_row(PFS_mutex_class *klass)
Definition: table_ews_global_by_event_name.cc:402
int make_file_row(PFS_file_class *klass)
Definition: table_ews_global_by_event_name.cc:432
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_ews_global_by_event_name.cc:97
table_ews_global_by_event_name()
Definition: table_ews_global_by_event_name.cc:114
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1141
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
Definition: buf0block_hint.cc:30
Performance schema tables (declarations).
Instrumentation metadata for a condition.
Definition: pfs_instr_class.h:383
Position of a double cursor, for iterations using 2 nested loops.
Definition: pfs_engine_table.h:602
uint m_index_1
Outer index.
Definition: pfs_engine_table.h:604
uint m_index_2
Current index within index_1.
Definition: pfs_engine_table.h:606
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:359
Row fragment for column EVENT_NAME.
Definition: table_helper.h:583
Instrumentation metadata for a file.
Definition: pfs_instr_class.h:644
Information for all instrumentation.
Definition: pfs_instr_class.h:248
Name space, internal views used within table setup_instruments.
Definition: table_helper.h:490
static const uint LAST_VIEW
Definition: table_helper.h:502
static const uint FIRST_VIEW
Definition: table_helper.h:493
Instrumentation metadata for a mutex.
Definition: pfs_instr_class.h:363
Instrumentation metadata for a read write lock.
Definition: pfs_instr_class.h:373
Instrumentation metadata for a socket.
Definition: pfs_instr_class.h:673
Row fragment for single statistics columns (COUNT, SUM, MIN, AVG, MAX)
Definition: table_helper.h:689
Definition: thr_lock.h:139
Position of a cursor on PERFORMANCE_SCHEMA.EVENTS_WAITS_SUMMARY_GLOBAL_BY_EVENT_NAME.
Definition: table_ews_global_by_event_name.h:86
void next_view()
Definition: table_ews_global_by_event_name.h:96
bool has_more_view()
Definition: table_ews_global_by_event_name.h:94
pos_ews_global_by_event_name()
Definition: table_ews_global_by_event_name.h:87
void reset()
Definition: table_ews_global_by_event_name.h:89
A row of table PERFORMANCE_SCHEMA.EVENTS_WAITS_SUMMARY_GLOBAL_BY_EVENT_NAME.
Definition: table_ews_global_by_event_name.h:72
PFS_event_name_row m_event_name
Column EVENT_NAME.
Definition: table_ews_global_by_event_name.h:74
PFS_stat_row m_stat
Columns COUNT_STAR, SUM/MIN/AVG/MAX TIMER_WAIT.
Definition: table_ews_global_by_event_name.h:76
Helpers to implement a performance schema table.