24#ifndef TABLE_ESMS_BY_PROGRAM_H
25#define TABLE_ESMS_BY_PROGRAM_H
97 int rnd_pos(
const void *pos)
override;
104 bool read_all)
override;
Definition: pfs_engine_table.h:300
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_esms_by_program.h:42
PFS_key_object_type_enum m_key_1
Definition: table_esms_by_program.h:55
virtual bool match(PFS_program *pfs)
Definition: table_esms_by_program.cc:113
PFS_key_object_schema m_key_2
Definition: table_esms_by_program.h:56
PFS_index_esms_by_program()
Definition: table_esms_by_program.h:44
~PFS_index_esms_by_program() override=default
PFS_key_object_name m_key_3
Definition: table_esms_by_program.h:57
Definition: table_helper.h:1637
Definition: table_helper.h:1622
Definition: table_helper.h:1681
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Table PERFORMANCE_SCHEMA.EVENTS_STATEMENTS_SUMMARY_BY_PROGRAM.
Definition: table_esms_by_program.h:86
PFS_index_esms_by_program * m_opened_index
Definition: table_esms_by_program.h:127
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_esms_by_program.cc:158
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_esms_by_program.cc:153
~table_esms_by_program() override=default
static THR_LOCK m_table_lock
Table share lock.
Definition: table_esms_by_program.h:116
table_esms_by_program()
Definition: table_esms_by_program.cc:148
PFS_simple_index m_pos
Current position.
Definition: table_esms_by_program.h:123
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_esms_by_program.cc:172
int make_row(PFS_program *)
Definition: table_esms_by_program.cc:214
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_esms_by_program.cc:235
static ha_rows get_row_count()
Definition: table_esms_by_program.cc:144
static int delete_all_rows()
Definition: table_esms_by_program.cc:139
int index_next() override
Find key in index, read record.
Definition: table_esms_by_program.cc:194
static Plugin_table m_table_def
Table definition.
Definition: table_esms_by_program.h:118
PFS_simple_index m_next_pos
Next position.
Definition: table_esms_by_program.h:125
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_esms_by_program.cc:135
int index_init(uint idx, bool sorted) override
Definition: table_esms_by_program.cc:185
row_esms_by_program m_row
Current row.
Definition: table_esms_by_program.h:121
static PFS_engine_table_share m_share
Table share.
Definition: table_esms_by_program.h:89
my_off_t ha_rows
Definition: my_base.h:1140
Definition: buf0block_hint.cc:30
enum_object_type
Enum values for the various OBJECT_TYPE columns.
Definition: pfs_column_types.h:222
Stored Program data structures (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:66
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:358
Definition: pfs_program.h:57
Definition: pfs_name.h:285
Definition: pfs_name.h:186
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:566
Row fragment for stored program statistics.
Definition: table_helper.h:965
Row fragment for statement statistics columns.
Definition: table_helper.h:873
Definition: thr_lock.h:139
A row of table PERFORMANCE_SCHEMA.EVENTS_STATEMENTS_SUMMARY_BY_PROGRAM.
Definition: table_esms_by_program.h:64
PFS_schema_name m_schema_name
Column OBJECT_SCHEMA.
Definition: table_esms_by_program.h:68
enum_object_type m_object_type
Column OBJECT_TYPE.
Definition: table_esms_by_program.h:66
PFS_statement_stat_row m_stmt_stat
Columns COUNT_STATEMENTS,SUM_STATEMENTS_WAIT...SUM_NO_GOOD_INDEX_USED.
Definition: table_esms_by_program.h:82
PFS_sp_stat_row m_sp_stat
Columns COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT.
Definition: table_esms_by_program.h:79
PFS_routine_name m_object_name
Column OBJECT_NAME.
Definition: table_esms_by_program.h:70
Helpers to implement a performance schema table.
unsigned int uint
Definition: uca9-dump.cc:75