23#ifndef TABLE_EWS_GLOBAL_BY_EVENT_NAME_H
24#define TABLE_EWS_GLOBAL_BY_EVENT_NAME_H
113 int rnd_pos(
const void *pos)
override;
115 int index_init(uint idx,
bool sorted)
override;
120 bool read_all)
override;
Definition: pfs_engine_table.h:299
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:69
Definition: table_ews_global_by_event_name.h:53
PFS_index_ews_global_by_event_name()
Definition: table_ews_global_by_event_name.h:55
PFS_key_event_name m_key
Definition: table_ews_global_by_event_name.h:64
virtual bool match(PFS_instr_class *instr_class)
Definition: table_ews_global_by_event_name.cc:87
~PFS_index_ews_global_by_event_name() override=default
virtual bool match_view(uint view)
Definition: table_ews_global_by_event_name.cc:80
Definition: table_helper.h:1431
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:39
Table PERFORMANCE_SCHEMA.EVENTS_WAITS_SUMMARY_GLOBAL_BY_EVENT_NAME.
Definition: table_ews_global_by_event_name.h:102
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_ews_global_by_event_name.cc:119
static Plugin_table m_table_def
Table definition.
Definition: table_ews_global_by_event_name.h:142
int make_rwlock_row(PFS_rwlock_class *klass)
Definition: table_ews_global_by_event_name.cc:413
~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:124
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:504
static int delete_all_rows()
Definition: table_ews_global_by_event_name.cc:101
static ha_rows get_row_count()
Definition: table_ews_global_by_event_name.cc:109
int make_cond_row(PFS_cond_class *klass)
Definition: table_ews_global_by_event_name.cc:423
static PFS_engine_table_share m_share
Table share.
Definition: table_ews_global_by_event_name.h:105
int make_idle_row(PFS_instr_class *klass)
Definition: table_ews_global_by_event_name.cc:474
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_ews_global_by_event_name.cc:201
int make_table_lock_row(PFS_instr_class *klass)
Definition: table_ews_global_by_event_name.cc:453
int make_socket_row(PFS_socket_class *klass)
Definition: table_ews_global_by_event_name.cc:464
static THR_LOCK m_table_lock
Table share lock.
Definition: table_ews_global_by_event_name.h:140
pos_ews_global_by_event_name m_next_pos
Next position.
Definition: table_ews_global_by_event_name.h:149
row_ews_global_by_event_name m_row
Current row.
Definition: table_ews_global_by_event_name.h:145
int make_metadata_row(PFS_instr_class *klass)
Definition: table_ews_global_by_event_name.cc:490
PFS_index_ews_global_by_event_name * m_opened_index
Definition: table_ews_global_by_event_name.h:151
pos_ews_global_by_event_name m_pos
Current position.
Definition: table_ews_global_by_event_name.h:147
int make_table_io_row(PFS_instr_class *klass)
Definition: table_ews_global_by_event_name.cc:443
int index_next() override
Find key in index, read record.
Definition: table_ews_global_by_event_name.cc:280
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:403
int make_file_row(PFS_file_class *klass)
Definition: table_ews_global_by_event_name.cc:433
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_ews_global_by_event_name.cc:96
table_ews_global_by_event_name()
Definition: table_ews_global_by_event_name.cc:113
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1139
static PFS_engine_table_share_proxy table
Definition: pfs.cc:60
Definition: buf0block_hint.cc:29
Performance schema tables (declarations).
Instrumentation metadata for a condition.
Definition: pfs_instr_class.h:337
Position of a double cursor, for iterations using 2 nested loops.
Definition: pfs_engine_table.h:592
uint m_index_1
Outer index.
Definition: pfs_engine_table.h:594
uint m_index_2
Current index within index_1.
Definition: pfs_engine_table.h:596
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:357
Row fragment for column EVENT_NAME.
Definition: table_helper.h:582
Instrumentation metadata for a file.
Definition: pfs_instr_class.h:535
Information for all instrumentation.
Definition: pfs_instr_class.h:204
Name space, internal views used within table setup_instruments.
Definition: table_helper.h:489
static const uint LAST_VIEW
Definition: table_helper.h:501
static const uint FIRST_VIEW
Definition: table_helper.h:492
Instrumentation metadata for a mutex.
Definition: pfs_instr_class.h:317
Instrumentation metadata for a read write lock.
Definition: pfs_instr_class.h:327
Instrumentation metadata for a socket.
Definition: pfs_instr_class.h:564
Row fragment for single statistics columns (COUNT, SUM, MIN, AVG, MAX)
Definition: table_helper.h:661
Definition: thr_lock.h:138
Position of a cursor on PERFORMANCE_SCHEMA.EVENTS_WAITS_SUMMARY_GLOBAL_BY_EVENT_NAME.
Definition: table_ews_global_by_event_name.h:85
void next_view()
Definition: table_ews_global_by_event_name.h:95
bool has_more_view()
Definition: table_ews_global_by_event_name.h:93
pos_ews_global_by_event_name()
Definition: table_ews_global_by_event_name.h:86
void reset()
Definition: table_ews_global_by_event_name.h:88
A row of table PERFORMANCE_SCHEMA.EVENTS_WAITS_SUMMARY_GLOBAL_BY_EVENT_NAME.
Definition: table_ews_global_by_event_name.h:71
PFS_event_name_row m_event_name
Column EVENT_NAME.
Definition: table_ews_global_by_event_name.h:73
PFS_stat_row m_stat
Columns COUNT_STAR, SUM/MIN/AVG/MAX TIMER_WAIT.
Definition: table_ews_global_by_event_name.h:75
Helpers to implement a performance schema table.