24#ifndef TABLE_SESSION_STATUS_H
25#define TABLE_SESSION_STATUS_H
90 int rnd_pos(
const void *pos)
override;
97 bool read_all)
override;
Definition: pfs_engine_table.h:301
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_session_status.h:63
PFS_index_session_status()
Definition: table_session_status.h:65
virtual bool match(const Status_variable *pfs)
Definition: table_session_status.cc:47
PFS_key_variable_name m_key
Definition: table_session_status.h:73
~PFS_index_session_status() override=default
Definition: table_helper.h:1571
Status variable cache.
Definition: pfs_variable.h:678
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Status variable derived from SHOW_VAR.
Definition: pfs_variable.h:208
Table PERFORMANCE_SCHEMA.SESSION_STATUS.
Definition: table_session_status.h:77
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_session_status.cc:117
static PFS_engine_table_share m_share
Table share.
Definition: table_session_status.h:82
table_session_status()
Definition: table_session_status.cc:99
int index_next() override
Find key in index, read record.
Definition: table_session_status.cc:160
int make_row(const Status_variable *status_var)
Definition: table_session_status.cc:179
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_session_status.cc:192
pos_t m_next_pos
Next position.
Definition: table_session_status.h:119
PFS_simple_index pos_t
Definition: table_session_status.h:78
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_session_status.cc:105
static ha_rows get_row_count()
Definition: table_session_status.cc:92
int index_init(uint idx, bool sorted) override
Definition: table_session_status.cc:148
static THR_LOCK m_table_lock
Table share lock.
Definition: table_session_status.h:108
int rnd_init(bool scan) override
Initialize table scan.
Definition: table_session_status.cc:110
row_session_status m_row
Current row.
Definition: table_session_status.h:115
~table_session_status() override=default
static Plugin_table m_table_def
Table definition.
Definition: table_session_status.h:110
PFS_status_variable_cache m_status_cache
Current THD variables.
Definition: table_session_status.h:113
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_session_status.cc:134
pos_t m_pos
Current position.
Definition: table_session_status.h:117
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_session_status.cc:88
PFS_index_session_status * m_opened_index
Definition: table_session_status.h:121
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1140
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
Definition: buf0block_hint.cc:30
Performance schema tables (declarations).
Performance schema system and status variables (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:66
Performance schema instrumentation (declarations).
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:359
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:567
Definition: table_helper.h:1114
Definition: table_helper.h:1127
Definition: thr_lock.h:139
A row of table PERFORMANCE_SCHEMA.SESSION_STATUS.
Definition: table_session_status.h:54
PFS_variable_value_row m_variable_value
Column VARIABLE_VALUE.
Definition: table_session_status.h:60
PFS_variable_name_row m_variable_name
Column VARIABLE_NAME.
Definition: table_session_status.h:58
ulonglong m_thread_internal_id
Column THREAD_ID.
Definition: table_session_status.h:56
Helpers to implement a performance schema table.
unsigned int uint
Definition: uca9-dump.cc:75