24#ifndef TABLE_TABLE_HANDLES_H
25#define TABLE_TABLE_HANDLES_H
146 int rnd_pos(
const void *pos)
override;
148 int index_init(uint idx,
bool sorted)
override;
153 bool read_all)
override;
Definition: pfs_engine_table.h:301
Definition: pfs_engine_table.h:268
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_table_handles.h:105
PFS_key_object_instance m_key
Definition: table_table_handles.h:115
bool match(PFS_table *pfs) override
Definition: table_table_handles.cc:111
~PFS_index_table_handles_by_instance() override=default
PFS_index_table_handles_by_instance()
Definition: table_table_handles.h:107
Definition: table_table_handles.h:87
~PFS_index_table_handles_by_object() override=default
PFS_key_object_schema m_key_2
Definition: table_table_handles.h:101
PFS_key_object_type m_key_1
Definition: table_table_handles.h:100
PFS_index_table_handles_by_object()
Definition: table_table_handles.h:89
bool match(PFS_table *pfs) override
Definition: table_table_handles.cc:84
PFS_key_object_name m_key_3
Definition: table_table_handles.h:102
Definition: table_table_handles.h:118
bool match(PFS_table *pfs) override
Definition: table_table_handles.cc:121
PFS_key_event_id m_key_2
Definition: table_table_handles.h:131
PFS_index_table_handles_by_owner()
Definition: table_table_handles.h:120
PFS_key_thread_id m_key_1
Definition: table_table_handles.h:130
~PFS_index_table_handles_by_owner() override=default
Definition: table_table_handles.h:70
PFS_index_table_handles(PFS_engine_key *key_1)
Definition: table_table_handles.h:72
PFS_index_table_handles(PFS_engine_key *key_1, PFS_engine_key *key_2)
Definition: table_table_handles.h:75
virtual bool match(PFS_table *table)=0
~PFS_index_table_handles() override=default
PFS_index_table_handles(PFS_engine_key *key_1, PFS_engine_key *key_2, PFS_engine_key *key_3)
Definition: table_table_handles.h:78
Definition: table_helper.h:1295
Definition: table_helper.h:1734
Definition: table_helper.h:1671
Definition: table_helper.h:1656
Definition: table_helper.h:1696
Definition: table_helper.h:1279
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Table PERFORMANCE_SCHEMA.TABLE_HANDLES.
Definition: table_table_handles.h:135
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_table_handles.cc:137
int make_row(PFS_table *table)
Definition: table_table_handles.cc:229
row_table_handles m_row
Current row.
Definition: table_table_handles.h:169
int rnd_init(bool scan) override
Initialize table scan.
Definition: table_table_handles.cc:156
static ha_rows get_row_count()
Definition: table_table_handles.cc:141
static PFS_engine_table_share m_share
Table share.
Definition: table_table_handles.h:138
PFS_simple_index m_next_pos
Next position.
Definition: table_table_handles.h:173
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_table_handles.cc:158
static Plugin_table m_table_def
Table definition.
Definition: table_table_handles.h:166
PFS_simple_index m_pos
Current position.
Definition: table_table_handles.h:171
PFS_index_table_handles * m_opened_index
Definition: table_table_handles.h:176
static THR_LOCK m_table_lock
Table share lock.
Definition: table_table_handles.h:164
int index_init(uint idx, bool sorted) override
Definition: table_table_handles.cc:185
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_table_handles.cc:172
table_table_handles()
Definition: table_table_handles.cc:145
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_table_handles.cc:266
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_table_handles.cc:151
~table_table_handles() override=default
int index_next() override
Find key in index, read record.
Definition: table_table_handles.cc:208
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1141
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
Definition: buf0block_hint.cc:30
Performance schema tables (declarations).
Statistics (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:66
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
Instrumented table implementation.
Definition: pfs_instr.h:195
Definition: thr_lock.h:139
A row of table PERFORMANCE_SCHEMA.TABLE_HANDLES.
Definition: table_table_handles.h:55
PFS_TL_LOCK_TYPE m_external_lock
Column EXTERNAL_LOCK.
Definition: table_table_handles.h:67
ulonglong m_owner_thread_id
Column OWNER_THREAD_ID.
Definition: table_table_handles.h:61
PFS_object_row m_object
Column OBJECT_TYPE, SCHEMA_NAME, OBJECT_NAME.
Definition: table_table_handles.h:57
const void * m_identity
Column OBJECT_INSTANCE_BEGIN.
Definition: table_table_handles.h:59
PFS_TL_LOCK_TYPE m_internal_lock
Column INTERNAL_LOCK.
Definition: table_table_handles.h:65
ulonglong m_owner_event_id
Column OWNER_EVENT_ID.
Definition: table_table_handles.h:63
Helpers to implement a performance schema table.