24#ifndef TABLE_GLOBAL_VARIABLES_H
25#define TABLE_GLOBAL_VARIABLES_H
88 int rnd_pos(
const void *pos)
override;
90 int index_init(uint idx,
bool sorted)
override;
95 bool read_all)
override;
Definition: pfs_engine_table.h:300
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_global_variables.h:50
PFS_key_variable_name m_key
Definition: table_global_variables.h:60
~PFS_index_global_variables() override=default
PFS_index_global_variables()
Definition: table_global_variables.h:52
virtual bool match(const System_variable *pfs)
Definition: table_global_variables.cc:48
Definition: table_helper.h:1577
System variable cache.
Definition: pfs_variable.h:606
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
System variable derived from sys_var object.
Definition: pfs_variable.h:169
Table PERFORMANCE_SCHEMA.GLOBAL_VARIABLES.
Definition: table_global_variables.h:75
int rnd_init(bool scan) override
Initialize table scan.
Definition: table_global_variables.cc:114
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_global_variables.cc:136
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_global_variables.cc:124
int index_init(uint idx, bool sorted) override
Definition: table_global_variables.cc:147
static Plugin_table m_table_def
Table definition.
Definition: table_global_variables.h:108
pos_t m_pos
Current position.
Definition: table_global_variables.h:115
PFS_simple_index pos_t
Definition: table_global_variables.h:76
PFS_index_global_variables * m_opened_index
Definition: table_global_variables.h:119
static THR_LOCK m_table_lock
Table share lock.
Definition: table_global_variables.h:106
int make_row(const System_variable *system_var)
Definition: table_global_variables.cc:179
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_global_variables.cc:199
int index_next() override
Find key in index, read record.
Definition: table_global_variables.cc:163
PFS_system_variable_cache m_sysvar_cache
Current THD variables.
Definition: table_global_variables.h:111
table_global_variables()
Definition: table_global_variables.cc:103
row_global_variables m_row
Current row.
Definition: table_global_variables.h:113
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_global_variables.cc:109
~table_global_variables() override=default
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_global_variables.cc:89
pos_t m_next_pos
Next position.
Definition: table_global_variables.h:117
static ha_rows get_row_count()
Definition: table_global_variables.cc:93
static PFS_engine_table_share m_share
Table share.
Definition: table_global_variables.h:80
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.
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
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:358
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:566
Definition: table_helper.h:1115
Definition: table_helper.h:1128
Definition: thr_lock.h:139
A row of table PERFORMANCE_SCHEMA.GLOBAL_VARIABLES.
Definition: table_global_variables.h:67
PFS_variable_value_row m_variable_value
Column VARIABLE_VALUE.
Definition: table_global_variables.h:71
PFS_variable_name_row m_variable_name
Column VARIABLE_NAME.
Definition: table_global_variables.h:69
Helpers to implement a performance schema table.