24#ifndef TABLE_OBJECTS_SUMMARY_GLOBAL_BY_TYPE_H
25#define TABLE_OBJECTS_SUMMARY_GLOBAL_BY_TYPE_H
116 int rnd_pos(
const void *pos)
override;
118 int index_init(uint idx,
bool sorted)
override;
123 bool read_all)
override;
Definition: pfs_engine_table.h:299
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:69
Definition: table_os_global_by_type.h:85
PFS_key_object_type m_key_1
Definition: table_os_global_by_type.h:99
PFS_key_object_schema m_key_2
Definition: table_os_global_by_type.h:100
virtual bool match(PFS_table_share *pfs)
Definition: table_os_global_by_type.cc:82
~PFS_index_os_global_by_type() override=default
PFS_key_object_name m_key_3
Definition: table_os_global_by_type.h:101
PFS_index_os_global_by_type()
Definition: table_os_global_by_type.h:87
Definition: table_helper.h:1610
Definition: table_helper.h:1595
Definition: table_helper.h:1635
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:39
Table PERFORMANCE_SCHEMA.OBJECTS_SUMMARY_GLOBAL_BY_TYPE.
Definition: table_os_global_by_type.h:105
static THR_LOCK m_table_lock
Table share lock.
Definition: table_os_global_by_type.h:135
int index_next() override
Find key in index, read record.
Definition: table_os_global_by_type.cc:227
table_os_global_by_type()
Definition: table_os_global_by_type.cc:141
static PFS_engine_table_share m_share
Table share.
Definition: table_os_global_by_type.h:108
pos_os_global_by_type m_pos
Current position.
Definition: table_os_global_by_type.h:142
row_os_global_by_type m_row
Current row.
Definition: table_os_global_by_type.h:140
static Plugin_table m_table_def
Table definition.
Definition: table_os_global_by_type.h:137
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_os_global_by_type.cc:126
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_os_global_by_type.cc:326
static int delete_all_rows()
Definition: table_os_global_by_type.cc:130
~table_os_global_by_type() override=default
static ha_rows get_row_count()
Definition: table_os_global_by_type.cc:136
pos_os_global_by_type m_next_pos
Next position.
Definition: table_os_global_by_type.h:144
int index_init(uint idx, bool sorted) override
Definition: table_os_global_by_type.cc:218
PFS_index_os_global_by_type * m_opened_index
Definition: table_os_global_by_type.h:147
int make_program_row(PFS_program *pfs_program)
Definition: table_os_global_by_type.cc:270
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_os_global_by_type.cc:152
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_os_global_by_type.cc:191
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_os_global_by_type.cc:147
int make_table_row(PFS_table_share *table_share)
Definition: table_os_global_by_type.cc:286
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).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:65
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 columns OBJECT_TYPE, SCHEMA_NAME, OBJECT_NAME.
Definition: table_helper.h:602
Name space, internal views used within object summaries.
Definition: table_helper.h:519
static const uint LAST_VIEW
Definition: table_helper.h:523
static const uint FIRST_VIEW
Definition: table_helper.h:520
Definition: pfs_program.h:56
Row fragment for single statistics columns (COUNT, SUM, MIN, AVG, MAX)
Definition: table_helper.h:661
Instrumentation metadata for a table share.
Definition: pfs_instr_class.h:404
Definition: thr_lock.h:138
Position of a cursor on PERFORMANCE_SCHEMA.OBJECTS_SUMMARY_GLOBAL_BY_TYPE.
Definition: table_os_global_by_type.h:69
void reset()
Definition: table_os_global_by_type.h:72
bool has_more_view()
Definition: table_os_global_by_type.h:77
pos_os_global_by_type()
Definition: table_os_global_by_type.h:70
void next_view()
Definition: table_os_global_by_type.h:79
A row of table PERFORMANCE_SCHEMA.OBJECTS_SUMMARY_GLOBAL_BY_TYPE.
Definition: table_os_global_by_type.h:54
PFS_object_row m_object
Column OBJECT_TYPE, SCHEMA_NAME, OBJECT_NAME.
Definition: table_os_global_by_type.h:56
PFS_stat_row m_stat
Columns COUNT_STAR, SUM/MIN/AVG/MAX TIMER_WAIT.
Definition: table_os_global_by_type.h:59
Helpers to implement a performance schema table.