24#ifndef TABLE_SETUP_THREADS_H
25#define TABLE_SETUP_THREADS_H
81 int rnd_pos(
const void *pos)
override;
83 int index_init(uint idx,
bool sorted)
override;
88 bool read_all)
override;
91 unsigned char *new_buf,
Field **fields)
override;
Definition: pfs_engine_table.h:300
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_setup_threads.h:56
PFS_key_event_name m_key
Definition: table_setup_threads.h:65
bool match(PFS_instr_class *klass)
Definition: table_setup_threads.cc:78
~PFS_index_setup_threads() override=default
PFS_index_setup_threads()
Definition: table_setup_threads.h:58
Definition: table_helper.h:1459
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Table PERFORMANCE_SCHEMA.SETUP_INSTRUMENTS.
Definition: table_setup_threads.h:69
pos_t m_next_pos
Next position.
Definition: table_setup_threads.h:111
int make_row(PFS_thread_class *klass)
Definition: table_setup_threads.cc:178
static PFS_engine_table_share m_share
Table share.
Definition: table_setup_threads.h:74
~table_setup_threads() override=default
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_threads.cc:244
PFS_simple_index pos_t
Definition: table_setup_threads.h:70
int index_init(uint idx, bool sorted) override
Definition: table_setup_threads.cc:141
int index_next() override
Find key in index, read record.
Definition: table_setup_threads.cc:152
row_setup_threads m_row
Current row.
Definition: table_setup_threads.h:107
table_setup_threads()
Definition: table_setup_threads.cc:92
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_setup_threads.cc:122
static Plugin_table m_table_def
Table definition.
Definition: table_setup_threads.h:104
PFS_index_setup_threads * m_opened_index
Definition: table_setup_threads.h:113
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_setup_threads.cc:86
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_setup_threads.cc:95
static THR_LOCK m_table_lock
Table share lock.
Definition: table_setup_threads.h:102
pos_t m_pos
Current position.
Definition: table_setup_threads.h:109
static ha_rows get_row_count()
Definition: table_setup_threads.cc:90
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_setup_threads.cc:100
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_setup_threads.cc:184
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).
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:358
Information for all instrumentation.
Definition: pfs_instr_class.h:212
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:566
Instrumentation metadata of a thread.
Definition: pfs_instr_class.h:360
Definition: thr_lock.h:139
A row of PERFORMANCE_SCHEMA.SETUP_THREADS.
Definition: table_setup_threads.h:51
PFS_thread_class * m_instr_class
Columns NAME, ENABLED, HISTORY, PROPERTIES, VOLATILITY, DOCUMENTATION.
Definition: table_setup_threads.h:53
Helpers to implement a performance schema table.