24#ifndef TABLE_IO_WAIT_SUMMARY_BY_INDEX_USAGE_H
25#define TABLE_IO_WAIT_SUMMARY_BY_INDEX_USAGE_H
114 int rnd_pos(
const void *pos)
override;
121 bool read_all)
override;
Definition: pfs_engine_table.h:300
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_tiws_by_index_usage.h:80
PFS_key_object_name m_key_3
Definition: table_tiws_by_index_usage.h:97
virtual bool match(PFS_table_share *pfs)
Definition: table_tiws_by_index_usage.cc:116
PFS_key_object_type m_key_1
Definition: table_tiws_by_index_usage.h:95
PFS_key_object_name m_key_4
Definition: table_tiws_by_index_usage.h:98
~PFS_index_tiws_by_index_usage() override=default
PFS_key_object_schema m_key_2
Definition: table_tiws_by_index_usage.h:96
PFS_index_tiws_by_index_usage()
Definition: table_tiws_by_index_usage.h:82
Definition: table_helper.h:1637
Definition: table_helper.h:1622
Definition: table_helper.h:1662
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Table PERFORMANCE_SCHEMA.TABLE_IO_WAIT_SUMMARY_BY_INDEX.
Definition: table_tiws_by_index_usage.h:102
pos_tiws_by_index_usage m_next_pos
Next position.
Definition: table_tiws_by_index_usage.h:141
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_tiws_by_index_usage.cc:215
table_tiws_by_index_usage()
Definition: table_tiws_by_index_usage.cc:177
static PFS_engine_table_share m_share
Table share.
Definition: table_tiws_by_index_usage.h:105
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_tiws_by_index_usage.cc:189
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_tiws_by_index_usage.cc:163
static int delete_all_rows()
Definition: table_tiws_by_index_usage.cc:167
static Plugin_table m_table_def
Table definition.
Definition: table_tiws_by_index_usage.h:134
~table_tiws_by_index_usage() override=default
pos_tiws_by_index_usage m_pos
Current position.
Definition: table_tiws_by_index_usage.h:139
int make_row(PFS_table_share *pfs_share, uint index)
Definition: table_tiws_by_index_usage.cc:279
static THR_LOCK m_table_lock
Table share lock.
Definition: table_tiws_by_index_usage.h:132
int rnd_init(bool scan) override
Initialize table scan.
Definition: table_tiws_by_index_usage.cc:187
row_tiws_by_index_usage m_row
Current row.
Definition: table_tiws_by_index_usage.h:137
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_tiws_by_index_usage.cc:313
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_tiws_by_index_usage.cc:182
int index_init(uint idx, bool sorted) override
Definition: table_tiws_by_index_usage.cc:234
static ha_rows get_row_count()
Definition: table_tiws_by_index_usage.cc:173
PFS_index_tiws_by_index_usage * m_opened_index
Definition: table_tiws_by_index_usage.h:144
int index_next() override
Find key in index, read record.
Definition: table_tiws_by_index_usage.cc:243
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1140
Definition: buf0block_hint.cc:30
Performance schema tables (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:66
Position of a double cursor, for iterations using 2 nested loops.
Definition: pfs_engine_table.h:601
uint m_index_1
Outer index.
Definition: pfs_engine_table.h:603
uint m_index_2
Current index within index_1.
Definition: pfs_engine_table.h:605
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:358
Row fragment for columns OBJECT_TYPE, SCHEMA_NAME, OBJECT_NAME, INDEX_NAME.
Definition: table_helper.h:659
Row fragment for table I/O statistics columns.
Definition: table_helper.h:762
Instrumentation metadata for a table share.
Definition: pfs_instr_class.h:409
Definition: thr_lock.h:139
Position of a cursor on PERFORMANCE_SCHEMA.TABLE_IO_WAIT_SUMMARY_BY_INDEX.
Definition: table_tiws_by_index_usage.h:66
pos_tiws_by_index_usage()
Definition: table_tiws_by_index_usage.h:67
void reset()
Definition: table_tiws_by_index_usage.h:69
void next_table()
Definition: table_tiws_by_index_usage.h:74
A row of table PERFORMANCE_SCHEMA.TABLE_IO_WAIT_SUMMARY_BY_INDEX.
Definition: table_tiws_by_index_usage.h:53
PFS_index_row m_index
Column OBJECT_TYPE, SCHEMA_NAME, OBJECT_NAME, INDEX_NAME.
Definition: table_tiws_by_index_usage.h:55
PFS_table_io_stat_row m_stat
Columns COUNT/SUM/MIN/AVG/MAX (+_READ, +WRITE).
Definition: table_tiws_by_index_usage.h:57
Helpers to implement a performance schema table.
unsigned int uint
Definition: uca9-dump.cc:75