24#ifndef TABLE_STATUS_BY_ACCOUNT_H
25#define TABLE_STATUS_BY_ACCOUNT_H
124 int rnd_pos(
const void *pos)
override;
126 int index_init(uint idx,
bool sorted)
override;
131 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_status_by_account.h:90
virtual bool match(PFS_account *pfs)
Definition: table_status_by_account.cc:81
PFS_index_status_by_account()
Definition: table_status_by_account.h:92
PFS_key_user m_key_1
Definition: table_status_by_account.h:104
PFS_key_variable_name m_key_3
Definition: table_status_by_account.h:106
PFS_key_host m_key_2
Definition: table_status_by_account.h:105
~PFS_index_status_by_account() override=default
Definition: table_helper.h:1519
Definition: table_helper.h:1507
Definition: table_helper.h:1592
Status variable cache.
Definition: pfs_variable.h:680
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.STATUS_BY_ACCOUNT.
Definition: table_status_by_account.h:110
PFS_status_variable_cache m_status_cache
Status variable cache for one account.
Definition: table_status_by_account.h:147
pos_status_by_account pos_t
Definition: table_status_by_account.h:111
int make_row(PFS_account *pfs_account, const Status_variable *status_var)
Definition: table_status_by_account.cc:227
int index_init(uint idx, bool sorted) override
Definition: table_status_by_account.cc:181
int rnd_init(bool scan) override
Initialize table scan.
Definition: table_status_by_account.cc:134
pos_t m_next_pos
Next position.
Definition: table_status_by_account.h:154
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_status_by_account.cc:129
static Plugin_table m_table_def
Table definition.
Definition: table_status_by_account.h:144
static PFS_engine_table_share m_share
Table share.
Definition: table_status_by_account.h:115
static THR_LOCK m_table_lock
Table share lock.
Definition: table_status_by_account.h:142
PFS_index_status_by_account * m_opened_index
Definition: table_status_by_account.h:156
int index_next() override
Find key in index, read record.
Definition: table_status_by_account.cc:193
pos_t m_pos
Current position.
Definition: table_status_by_account.h:152
table_status_by_account()
Definition: table_status_by_account.cc:124
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_status_by_account.cc:166
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_status_by_account.cc:105
static int delete_all_rows()
Definition: table_status_by_account.cc:109
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_status_by_account.cc:141
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_status_by_account.cc:252
row_status_by_account m_row
Current row.
Definition: table_status_by_account.h:150
~table_status_by_account() override=default
static ha_rows get_row_count()
Definition: table_status_by_account.cc:117
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
Generic buffer container.
PFS_account_container global_account_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).
Row fragment for columns USER, HOST.
Definition: table_helper.h:552
Per account statistics.
Definition: pfs_account.h:67
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
Definition: table_helper.h:1115
Definition: table_helper.h:1128
Definition: thr_lock.h:139
Position of a cursor on PERFORMANCE_SCHEMA.STATUS_BY_ACCOUNT.
Definition: table_status_by_account.h:72
void next_account()
Definition: table_status_by_account.h:84
pos_status_by_account()
Definition: table_status_by_account.h:73
bool has_more_account()
Definition: table_status_by_account.h:80
void reset()
Definition: table_status_by_account.h:75
A row of table PERFORMANCE_SCHEMA.STATUS_BY_ACCOUNT.
Definition: table_status_by_account.h:57
PFS_account_row m_account
Column USER, HOST.
Definition: table_status_by_account.h:59
PFS_variable_name_row m_variable_name
Column VARIABLE_NAME.
Definition: table_status_by_account.h:61
PFS_variable_value_row m_variable_value
Column VARIABLE_VALUE.
Definition: table_status_by_account.h:63
Helpers to implement a performance schema table.