24#ifndef TABLE_SETUP_CONSUMERS_H
25#define TABLE_SETUP_CONSUMERS_H
84 int rnd_pos(
const void *pos)
override;
86 int index_init(uint idx,
bool sorted)
override;
91 bool read_all)
override;
94 unsigned char *new_buf,
Field **fields)
override;
Definition: pfs_engine_table.h:301
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_setup_consumers.h:61
virtual bool match(row_setup_consumers *row)
Definition: table_setup_consumers.cc:143
PFS_key_name m_key
Definition: table_setup_consumers.h:70
PFS_index_setup_consumers()
Definition: table_setup_consumers.h:63
~PFS_index_setup_consumers() override=default
Definition: table_helper.h:1569
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Table PERFORMANCE_SCHEMA.SETUP_CONSUMERS.
Definition: table_setup_consumers.h:74
int index_next() override
Find key in index, read record.
Definition: table_setup_consumers.cc:203
static THR_LOCK m_table_lock
Table share lock.
Definition: table_setup_consumers.h:102
int index_init(uint idx, bool sorted) override
Definition: table_setup_consumers.cc:195
row_setup_consumers * m_row
Current row.
Definition: table_setup_consumers.h:107
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_setup_consumers.cc:166
static ha_rows get_row_count()
Definition: table_setup_consumers.cc:157
int update_row_values(TABLE *table, const unsigned char *old_buf, unsigned char *new_buf, Field **fields) override
Update the current row values.
Definition: table_setup_consumers.cc:245
PFS_index_setup_consumers * m_opened_index
Definition: table_setup_consumers.h:113
~table_setup_consumers() override=default
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_setup_consumers.cc:153
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_setup_consumers.cc:171
static Plugin_table m_table_def
Table definition.
Definition: table_setup_consumers.h:104
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_setup_consumers.cc:188
static PFS_engine_table_share m_share
Table share.
Definition: table_setup_consumers.h:77
PFS_simple_index m_pos
Current position.
Definition: table_setup_consumers.h:109
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_setup_consumers.cc:218
PFS_simple_index m_next_pos
Next position.
Definition: table_setup_consumers.h:111
table_setup_consumers()
Definition: table_setup_consumers.cc:159
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1141
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
Definition: buf0block_hint.cc:30
Performance schema tables (declarations).
Definition: mysql_lex_string.h:40
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: thr_lock.h:139
A row of PERFORMANCE_SCHEMA.SETUP_CONSUMERS.
Definition: table_setup_consumers.h:50
bool m_thread_refresh
Hidden column, thread refresh.
Definition: table_setup_consumers.h:58
LEX_CSTRING m_name
Column NAME.
Definition: table_setup_consumers.h:52
bool * m_enabled_ptr
Column ENABLED.
Definition: table_setup_consumers.h:54
bool m_instrument_refresh
Hidden column, instrument refresh.
Definition: table_setup_consumers.h:56
Helpers to implement a performance schema table.