23#ifndef TABLE_STATUS_BY_HOST_H
24#define TABLE_STATUS_BY_HOST_H
121 int rnd_pos(
const void *pos)
override;
128 bool read_all)
override;
size_t get_row_count()
Definition: pfs_buffer_container.h:464
Definition: pfs_engine_table.h:299
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:69
Definition: table_status_by_host.h:89
PFS_index_status_by_host()
Definition: table_status_by_host.h:91
virtual bool match(PFS_host *pfs)
Definition: table_status_by_host.cc:79
PFS_key_variable_name m_key_2
Definition: table_status_by_host.h:103
~PFS_index_status_by_host() override=default
PFS_key_host m_key_1
Definition: table_status_by_host.h:102
Definition: table_helper.h:1457
Definition: table_helper.h:1530
Status variable cache.
Definition: pfs_variable.h:677
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:39
Status variable derived from SHOW_VAR.
Definition: pfs_variable.h:207
Table PERFORMANCE_SCHEMA.STATUS_BY_HOST.
Definition: table_status_by_host.h:107
int rnd_init(bool scan) override
Initialize table scan.
Definition: table_status_by_host.cc:129
~table_status_by_host() override=default
static int delete_all_rows()
Definition: table_status_by_host.cc:102
pos_t m_next_pos
Next position.
Definition: table_status_by_host.h:151
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_status_by_host.cc:98
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_status_by_host.cc:161
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_status_by_host.cc:124
int index_next() override
Find key in index, read record.
Definition: table_status_by_host.cc:189
PFS_index_status_by_host * m_opened_index
Definition: table_status_by_host.h:153
PFS_status_variable_cache m_status_cache
Status variable cache for one host.
Definition: table_status_by_host.h:144
static THR_LOCK m_table_lock
Table share lock.
Definition: table_status_by_host.h:139
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_status_by_host.cc:136
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_status_by_host.cc:249
table_status_by_host()
Definition: table_status_by_host.cc:118
int index_init(uint idx, bool sorted) override
Definition: table_status_by_host.cc:176
static Plugin_table m_table_def
Table definition.
Definition: table_status_by_host.h:141
pos_status_by_host pos_t
Definition: table_status_by_host.h:108
static ha_rows get_row_count()
Definition: table_status_by_host.cc:111
row_status_by_host m_row
Current row.
Definition: table_status_by_host.h:147
static PFS_engine_table_share m_share
Table share.
Definition: table_status_by_host.h:112
pos_t m_pos
Current position.
Definition: table_status_by_host.h:149
int make_row(PFS_host *pfs_host, const Status_variable *status_var)
Definition: table_status_by_host.cc:224
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1139
Some integer typedefs for easier portability.
Definition: buf0block_hint.cc:29
Generic buffer container.
PFS_host_container global_host_container
Performance schema tables (declarations).
Performance schema system and status variables (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:65
Performance schema instrumentation (declarations).
Position of a double cursor, for iterations using 2 nested loops.
Definition: pfs_engine_table.h:592
uint m_index_1
Outer index.
Definition: pfs_engine_table.h:594
uint m_index_2
Current index within index_1.
Definition: pfs_engine_table.h:596
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:357
Row fragment for column HOST.
Definition: table_helper.h:526
Per host statistics.
Definition: pfs_host.h:63
Definition: table_helper.h:1086
Definition: table_helper.h:1099
Definition: thr_lock.h:138
Position of a cursor on PERFORMANCE_SCHEMA.STATUS_BY_HOST.
Definition: table_status_by_host.h:71
void next_host()
Definition: table_status_by_host.h:83
bool has_more_host()
Definition: table_status_by_host.h:79
void reset()
Definition: table_status_by_host.h:74
pos_status_by_host()
Definition: table_status_by_host.h:72
A row of table PERFORMANCE_SCHEMA.STATUS_BY_HOST.
Definition: table_status_by_host.h:56
PFS_variable_name_row m_variable_name
Column VARIABLE_NAME.
Definition: table_status_by_host.h:60
PFS_host_row m_host
Column HOST.
Definition: table_status_by_host.h:58
PFS_variable_value_row m_variable_value
Column VARIABLE_VALUE.
Definition: table_status_by_host.h:62
Helpers to implement a performance schema table.
unsigned int uint
Definition: uca9-dump.cc:74