25#ifndef TABLE_ESMS_BY_DIGEST_H
26#define TABLE_ESMS_BY_DIGEST_H
103 int rnd_pos(
const void *pos)
override;
110 bool read_all)
override;
Definition: pfs_engine_table.h:300
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_esms_by_digest.h:44
PFS_key_digest m_key_2
Definition: table_esms_by_digest.h:57
PFS_key_schema m_key_1
Definition: table_esms_by_digest.h:56
virtual bool match(PFS_statements_digest_stat *pfs)
Definition: table_esms_by_digest.cc:116
~PFS_index_esms_by_digest() override=default
PFS_index_esms_by_digest()
Definition: table_esms_by_digest.h:46
Definition: table_helper.h:1516
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
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:168
Table PERFORMANCE_SCHEMA.EVENTS_STATEMENTS_SUMMARY_BY_DIGEST.
Definition: table_esms_by_digest.h:92
static Plugin_table m_table_def
Table definition.
Definition: table_esms_by_digest.h:124
~table_esms_by_digest() override=default
PFS_simple_index m_next_pos
Next position.
Definition: table_esms_by_digest.h:131
static PFS_engine_table_share m_share
Table share.
Definition: table_esms_by_digest.h:95
int index_next() override
Find key in index, read record.
Definition: table_esms_by_digest.cc:198
static THR_LOCK m_table_lock
Table share lock.
Definition: table_esms_by_digest.h:122
table_esms_by_digest()
Definition: table_esms_by_digest.cc:140
static int delete_all_rows()
Definition: table_esms_by_digest.cc:133
static ha_rows get_row_count()
Definition: table_esms_by_digest.cc:138
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_esms_by_digest.cc:170
PFS_index_esms_by_digest * m_opened_index
Definition: table_esms_by_digest.h:133
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_esms_by_digest.cc:150
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_esms_by_digest.cc:129
row_esms_by_digest m_row
Current row.
Definition: table_esms_by_digest.h:127
int index_init(uint idx, bool sorted) override
Definition: table_esms_by_digest.cc:189
int make_row(PFS_statements_digest_stat *)
Definition: table_esms_by_digest.cc:220
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_esms_by_digest.cc:299
PFS_simple_index m_pos
Current position.
Definition: table_esms_by_digest.h:129
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_esms_by_digest.cc:145
my_off_t ha_rows
Definition: my_base.h:1140
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
Definition: buf0block_hint.cc:30
Statement Digest data structures (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:66
Row fragment for columns DIGEST, DIGEST_TEXT.
Definition: table_helper.h:565
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:358
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:566
Row fragment for statement statistics columns.
Definition: table_helper.h:873
A statement digest stat record.
Definition: pfs_digest.h:59
Definition: thr_lock.h:139
A row of table PERFORMANCE_SCHEMA.EVENTS_STATEMENTS_SUMMARY_BY_DIGEST.
Definition: table_esms_by_digest.h:64
ulonglong m_p999
Column QUANTILE_999.
Definition: table_esms_by_digest.h:81
ulonglong m_p95
Column QUANTILE_95.
Definition: table_esms_by_digest.h:77
String m_query_sample
Column QUERY_SAMPLE_TEXT.
Definition: table_esms_by_digest.h:84
ulonglong m_first_seen
Column FIRST_SEEN.
Definition: table_esms_by_digest.h:72
ulonglong m_last_seen
Column LAST_SEEN.
Definition: table_esms_by_digest.h:74
PFS_digest_row m_digest
Columns DIGEST/DIGEST_TEXT.
Definition: table_esms_by_digest.h:66
ulonglong m_p99
Column QUANTILE_99.
Definition: table_esms_by_digest.h:79
ulonglong m_query_sample_seen
Column QUERY_SAMPLE_SEEN.
Definition: table_esms_by_digest.h:86
PFS_statement_stat_row m_stat
Columns COUNT_STAR, SUM/MIN/AVG/MAX TIMER_WAIT.
Definition: table_esms_by_digest.h:69
ulonglong m_query_sample_timer_wait
Column QUERY_SAMPLE_TIMER_WAIT.
Definition: table_esms_by_digest.h:88
Helpers to implement a performance schema table.
unsigned int uint
Definition: uca9-dump.cc:75