25#ifndef TABLE_LOCK_WAITS_SUMMARY_BY_TABLE_H
26#define TABLE_LOCK_WAITS_SUMMARY_BY_TABLE_H
92 int rnd_pos(
const void *pos)
override;
94 int index_init(uint idx,
bool sorted)
override;
99 bool read_all)
override;
Definition: pfs_engine_table.h:301
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_tlws_by_table.h:61
PFS_key_object_type m_key_1
Definition: table_tlws_by_table.h:74
PFS_key_object_schema m_key_2
Definition: table_tlws_by_table.h:75
~PFS_index_tlws_by_table() override=default
PFS_index_tlws_by_table()
Definition: table_tlws_by_table.h:63
virtual bool match(const PFS_table_share *share)
Definition: table_tlws_by_table.cc:144
PFS_key_object_name m_key_3
Definition: table_tlws_by_table.h:76
Definition: table_helper.h:1671
Definition: table_helper.h:1656
Definition: table_helper.h:1696
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Table PERFORMANCE_SCHEMA.TABLE_LOCK_WAITS_SUMMARY_BY_TABLE.
Definition: table_tlws_by_table.h:80
int index_next() override
Find key in index, read record.
Definition: table_tlws_by_table.cc:233
PFS_index_tlws_by_table * m_opened_index
Definition: table_tlws_by_table.h:122
table_tlws_by_table()
Definition: table_tlws_by_table.cc:180
row_tlws_by_table m_row
Current row.
Definition: table_tlws_by_table.h:115
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_tlws_by_table.cc:212
int rnd_init(bool scan) override
Initialize table scan.
Definition: table_tlws_by_table.cc:193
PFS_simple_index m_next_pos
Next position.
Definition: table_tlws_by_table.h:119
int index_init(uint idx, bool sorted) override
Definition: table_tlws_by_table.cc:225
static THR_LOCK m_table_lock
Table share lock.
Definition: table_tlws_by_table.h:110
static int delete_all_rows()
Definition: table_tlws_by_table.cc:170
PFS_simple_index m_pos
Current position.
Definition: table_tlws_by_table.h:117
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_tlws_by_table.cc:166
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_tlws_by_table.cc:188
static Plugin_table m_table_def
Table definition.
Definition: table_tlws_by_table.h:112
static ha_rows get_row_count()
Definition: table_tlws_by_table.cc:176
~table_tlws_by_table() override=default
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_tlws_by_table.cc:195
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_tlws_by_table.cc:274
int make_row(PFS_table_share *table_share)
Definition: table_tlws_by_table.cc:253
static PFS_engine_table_share m_share
Table share.
Definition: table_tlws_by_table.h:83
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).
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:359
Row fragment for columns OBJECT_TYPE, SCHEMA_NAME, OBJECT_NAME.
Definition: table_helper.h:603
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:567
Row fragment for table lock statistics columns.
Definition: table_helper.h:800
Instrumentation metadata for a table share.
Definition: pfs_instr_class.h:513
Definition: thr_lock.h:139
A row of table PERFORMANCE_SCHEMA.TABLE_LOCK_WAITS_SUMMARY_BY_TABLE.
Definition: table_tlws_by_table.h:54
PFS_object_row m_object
Column OBJECT_TYPE, SCHEMA_NAME, OBJECT_NAME.
Definition: table_tlws_by_table.h:56
PFS_table_lock_stat_row m_stat
Columns COUNT/SUM/MIN/AVG/MAX READ/WRITE/READ_NORMAL/etc.
Definition: table_tlws_by_table.h:58
Helpers to implement a performance schema table.