24#ifndef TABLE_SETUP_OBJECTS_H
25#define TABLE_SETUP_OBJECTS_H
98 int rnd_pos(
const void *pos)
override;
105 bool read_all)
override;
108 unsigned char *new_buf,
Field **fields)
override;
111 Field **fields)
override;
Definition: pfs_engine_table.h:300
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_setup_objects.h:65
PFS_key_object_type_enum m_key_1
Definition: table_setup_objects.h:78
PFS_key_object_name m_key_3
Definition: table_setup_objects.h:80
PFS_key_object_schema m_key_2
Definition: table_setup_objects.h:79
~PFS_index_setup_objects() override=default
virtual bool match(PFS_setup_object *pfs)
Definition: table_setup_objects.cc:94
PFS_index_setup_objects()
Definition: table_setup_objects.h:67
Definition: table_helper.h:1637
Definition: table_helper.h:1622
Definition: table_helper.h:1681
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Table PERFORMANCE_SCHEMA.SETUP_OBJECTS.
Definition: table_setup_objects.h:84
int index_init(uint idx, bool sorted) override
Definition: table_setup_objects.cc:247
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_setup_objects.cc:219
int index_next() override
Find key in index, read record.
Definition: table_setup_objects.cc:256
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_setup_objects.cc:293
int delete_row_values(TABLE *table, const unsigned char *buf, Field **fields) override
Delete a row.
Definition: table_setup_objects.cc:373
static PFS_engine_table_share m_share
Table share.
Definition: table_setup_objects.h:87
static int write_row(PFS_engine_table *pfs_table, TABLE *table, unsigned char *buf, Field **fields)
Definition: table_setup_objects.cc:120
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_setup_objects.cc:234
static THR_LOCK m_table_lock
Table share lock.
Definition: table_setup_objects.h:122
PFS_index_setup_objects * m_opened_index
Definition: table_setup_objects.h:133
PFS_simple_index m_next_pos
Next position.
Definition: table_setup_objects.h:131
table_setup_objects()
Definition: table_setup_objects.cc:211
static int delete_all_rows()
Definition: table_setup_objects.cc:199
static PFS_engine_table * create(PFS_engine_table_share *)
Table builder.
Definition: table_setup_objects.cc:116
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_setup_objects.cc:214
int make_row(PFS_setup_object *pfs)
Definition: table_setup_objects.cc:276
row_setup_objects m_row
Current row.
Definition: table_setup_objects.h:127
static Plugin_table m_table_def
Table definition.
Definition: table_setup_objects.h:124
PFS_simple_index m_pos
Current position.
Definition: table_setup_objects.h:129
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_objects.cc:338
~table_setup_objects() override=default
static ha_rows get_row_count()
Definition: table_setup_objects.cc:207
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:1140
Common definition between mysql server & client.
Definition: buf0block_hint.cc:30
Data types for columns used in the performance schema tables (declarations)
enum_object_type
Enum values for the various OBJECT_TYPE columns.
Definition: pfs_column_types.h:222
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:358
Definition: pfs_name.h:336
Definition: pfs_name.h:186
A setup_object record.
Definition: pfs_setup_object.h:58
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:566
Definition: thr_lock.h:139
A row of PERFORMANCE_SCHEMA.SETUP_OBJECTS.
Definition: table_setup_objects.h:52
bool * m_enabled_ptr
Column ENABLED.
Definition: table_setup_objects.h:60
PFS_schema_name m_schema_name
Column SCHEMA_NAME.
Definition: table_setup_objects.h:56
PFS_object_name m_object_name
Column OBJECT_NAME.
Definition: table_setup_objects.h:58
enum_object_type m_object_type
Column OBJECT_TYPE.
Definition: table_setup_objects.h:54
bool * m_timed_ptr
Column TIMED.
Definition: table_setup_objects.h:62
Helpers to implement a performance schema table.
unsigned int uint
Definition: uca9-dump.cc:75