24#ifndef TABLE_SETUP_ACTORS_H
25#define TABLE_SETUP_ACTORS_H
97 int rnd_pos(
const void *pos)
override;
99 int index_init(uint idx,
bool sorted)
override;
104 bool read_all)
override;
107 unsigned char *new_buf,
Field **fields)
override;
110 Field **fields)
override;
Definition: pfs_engine_table.h:301
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_setup_actors.h:64
virtual bool match(PFS_setup_actor *pfs)
Definition: table_setup_actors.cc:81
PFS_key_role m_key_3
Definition: table_setup_actors.h:79
~PFS_index_setup_actors() override=default
PFS_key_host m_key_1
Definition: table_setup_actors.h:77
PFS_key_user m_key_2
Definition: table_setup_actors.h:78
PFS_index_setup_actors()
Definition: table_setup_actors.h:66
Definition: table_helper.h:1519
Definition: table_helper.h:1532
Definition: table_helper.h:1507
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Table PERFORMANCE_SCHEMA.SETUP_ACTORS.
Definition: table_setup_actors.h:83
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_setup_actors.cc:191
int index_next() override
Find key in index, read record.
Definition: table_setup_actors.cc:227
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_actors.cc:303
static Plugin_table m_table_def
Table definition.
Definition: table_setup_actors.h:123
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_setup_actors.cc:266
static ha_rows get_row_count()
Definition: table_setup_actors.cc:176
int index_init(uint idx, bool sorted) override
Definition: table_setup_actors.cc:219
static PFS_engine_table_share m_share
Table share.
Definition: table_setup_actors.h:86
~table_setup_actors() override=default
table_setup_actors()
Definition: table_setup_actors.cc:180
static THR_LOCK m_table_lock
Table share lock.
Definition: table_setup_actors.h:121
row_setup_actors m_row
Current row.
Definition: table_setup_actors.h:126
static int write_row(PFS_engine_table *pfs_table, TABLE *table, unsigned char *buf, Field **fields)
Definition: table_setup_actors.cc:107
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_setup_actors.cc:186
int delete_row_values(TABLE *table, const unsigned char *buf, Field **fields) override
Delete a row.
Definition: table_setup_actors.cc:338
PFS_simple_index m_pos
Current position.
Definition: table_setup_actors.h:128
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_setup_actors.cc:206
static int delete_all_rows()
Definition: table_setup_actors.cc:174
int make_row(PFS_setup_actor *pfs)
Definition: table_setup_actors.cc:249
PFS_index_setup_actors * m_opened_index
Definition: table_setup_actors.h:133
PFS_simple_index m_next_pos
Next position.
Definition: table_setup_actors.h:130
static PFS_engine_table * create(PFS_engine_table_share *)
Table builder.
Definition: table_setup_actors.cc:103
mysql_service_pfs_plugin_table_v1_t * pfs_table
Definition: log0pfs.cc:47
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1141
Common definition between mysql server & client.
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
Definition: buf0block_hint.cc:30
Performance schema tables (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:66
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:359
Definition: pfs_name.h:522
Definition: pfs_name.h:566
A setup_actor record.
Definition: pfs_setup_actor.h:59
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:567
Definition: pfs_name.h:478
Definition: thr_lock.h:139
A row of PERFORMANCE_SCHEMA.SETUP_ACTORS.
Definition: table_setup_actors.h:51
PFS_user_name m_user_name
Column USER.
Definition: table_setup_actors.h:55
bool * m_history_ptr
Column HISTORY.
Definition: table_setup_actors.h:61
bool * m_enabled_ptr
Column ENABLED.
Definition: table_setup_actors.h:59
PFS_host_name m_host_name
Column HOST.
Definition: table_setup_actors.h:53
PFS_role_name m_role_name
Column ROLE.
Definition: table_setup_actors.h:57
Helpers to implement a performance schema table.