24#ifndef TABLE_VARIABLES_BY_THREAD_H
25#define TABLE_VARIABLES_BY_THREAD_H
121 int rnd_pos(
const void *pos)
override;
123 int index_init(uint idx,
bool sorted)
override;
128 bool read_all)
override;
size_t get_row_count()
Definition: pfs_buffer_container.h:519
Definition: pfs_engine_table.h:301
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_variables_by_thread.h:90
PFS_key_variable_name m_key_2
Definition: table_variables_by_thread.h:104
virtual bool match(PFS_thread *pfs)
Definition: table_variables_by_thread.cc:47
PFS_index_variables_by_thread()
Definition: table_variables_by_thread.h:92
~PFS_index_variables_by_thread() override=default
PFS_key_thread_id m_key_1
Definition: table_variables_by_thread.h:103
Definition: table_helper.h:1279
Definition: table_helper.h:1592
System variable cache.
Definition: pfs_variable.h:608
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.VARIABLES_BY_THREAD.
Definition: table_variables_by_thread.h:108
int index_init(uint idx, bool sorted) override
Definition: table_variables_by_thread.cc:172
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_variables_by_thread.cc:99
PFS_index_variables_by_thread * m_opened_index
Definition: table_variables_by_thread.h:152
static Plugin_table m_table_def
Table definition.
Definition: table_variables_by_thread.h:141
int rnd_init(bool scan) override
Initialize table scan.
Definition: table_variables_by_thread.cc:125
pos_t m_pos
Current position.
Definition: table_variables_by_thread.h:148
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_variables_by_thread.cc:155
static ha_rows get_row_count()
Definition: table_variables_by_thread.cc:103
static THR_LOCK m_table_lock
Table share lock.
Definition: table_variables_by_thread.h:139
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_variables_by_thread.cc:243
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_variables_by_thread.cc:132
table_variables_by_thread()
Definition: table_variables_by_thread.cc:115
static PFS_engine_table_share m_share
Table share.
Definition: table_variables_by_thread.h:113
int make_row(PFS_thread *thread, const System_variable *system_var)
Definition: table_variables_by_thread.cc:214
~table_variables_by_thread() override=default
PFS_system_variable_cache m_sysvar_cache
Current THD variables.
Definition: table_variables_by_thread.h:144
pos_variables_by_thread pos_t
Definition: table_variables_by_thread.h:109
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_variables_by_thread.cc:120
row_variables_by_thread m_row
Current row.
Definition: table_variables_by_thread.h:146
pos_t m_next_pos
Next position.
Definition: table_variables_by_thread.h:150
int index_next() override
Find key in index, read record.
Definition: table_variables_by_thread.cc:184
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
Generic buffer container.
PFS_thread_container global_thread_container
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).
Position of a double cursor, for iterations using 2 nested loops.
Definition: pfs_engine_table.h:602
uint m_index_1
Outer index.
Definition: pfs_engine_table.h:604
uint m_index_2
Current index within index_1.
Definition: pfs_engine_table.h:606
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:359
Instrumented thread implementation.
Definition: pfs_instr.h:375
Definition: table_helper.h:1115
Definition: table_helper.h:1128
Definition: thr_lock.h:139
Position of a cursor on PERFORMANCE_SCHEMA.VARIABLES_BY_THREAD.
Definition: table_variables_by_thread.h:72
pos_variables_by_thread()
Definition: table_variables_by_thread.h:73
void next_thread()
Definition: table_variables_by_thread.h:84
bool has_more_thread()
Definition: table_variables_by_thread.h:80
void reset()
Definition: table_variables_by_thread.h:75
A row of table PERFORMANCE_SCHEMA.VARIABLES_BY_THREAD.
Definition: table_variables_by_thread.h:57
ulonglong m_thread_internal_id
Column THREAD_ID.
Definition: table_variables_by_thread.h:59
PFS_variable_value_row m_variable_value
Column VARIABLE_VALUE.
Definition: table_variables_by_thread.h:63
PFS_variable_name_row m_variable_name
Column VARIABLE_NAME.
Definition: table_variables_by_thread.h:61
Helpers to implement a performance schema table.