24#ifndef TABLE_ESMS_BY_DIGEST_H
25#define TABLE_ESMS_BY_DIGEST_H
102 int rnd_pos(
const void *pos)
override;
104 int index_init(uint idx,
bool sorted)
override;
109 bool read_all)
override;
Definition: pfs_engine_table.h:299
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:69
Definition: table_esms_by_digest.h:43
PFS_key_digest m_key_2
Definition: table_esms_by_digest.h:56
PFS_key_schema m_key_1
Definition: table_esms_by_digest.h:55
virtual bool match(PFS_statements_digest_stat *pfs)
Definition: table_esms_by_digest.cc:115
~PFS_index_esms_by_digest() override=default
PFS_index_esms_by_digest()
Definition: table_esms_by_digest.h:45
Definition: table_helper.h:1507
Definition: table_helper.h:1498
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:39
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:166
Table PERFORMANCE_SCHEMA.EVENTS_STATEMENTS_SUMMARY_BY_DIGEST.
Definition: table_esms_by_digest.h:91
static Plugin_table m_table_def
Table definition.
Definition: table_esms_by_digest.h:123
~table_esms_by_digest() override=default
PFS_simple_index m_next_pos
Next position.
Definition: table_esms_by_digest.h:130
static PFS_engine_table_share m_share
Table share.
Definition: table_esms_by_digest.h:94
int index_next() override
Find key in index, read record.
Definition: table_esms_by_digest.cc:197
static THR_LOCK m_table_lock
Table share lock.
Definition: table_esms_by_digest.h:121
table_esms_by_digest()
Definition: table_esms_by_digest.cc:139
static int delete_all_rows()
Definition: table_esms_by_digest.cc:132
static ha_rows get_row_count()
Definition: table_esms_by_digest.cc:137
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_esms_by_digest.cc:169
PFS_index_esms_by_digest * m_opened_index
Definition: table_esms_by_digest.h:132
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_esms_by_digest.cc:149
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_esms_by_digest.cc:128
row_esms_by_digest m_row
Current row.
Definition: table_esms_by_digest.h:126
int index_init(uint idx, bool sorted) override
Definition: table_esms_by_digest.cc:188
int make_row(PFS_statements_digest_stat *)
Definition: table_esms_by_digest.cc:219
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:298
PFS_simple_index m_pos
Current position.
Definition: table_esms_by_digest.h:128
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_esms_by_digest.cc:144
my_off_t ha_rows
Definition: my_base.h:1139
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:55
static PFS_engine_table_share_proxy table
Definition: pfs.cc:60
Definition: buf0block_hint.cc:29
Statement Digest data structures (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:65
Row fragment for columns DIGEST, DIGEST_TEXT.
Definition: table_helper.h:565
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:357
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:557
Row fragment for statement statistics columns.
Definition: table_helper.h:846
A statement digest stat record.
Definition: pfs_digest.h:58
Definition: thr_lock.h:138
A row of table PERFORMANCE_SCHEMA.EVENTS_STATEMENTS_SUMMARY_BY_DIGEST.
Definition: table_esms_by_digest.h:63
ulonglong m_p999
Column QUANTILE_999.
Definition: table_esms_by_digest.h:80
ulonglong m_p95
Column QUANTILE_95.
Definition: table_esms_by_digest.h:76
String m_query_sample
Column QUERY_SAMPLE_TEXT.
Definition: table_esms_by_digest.h:83
ulonglong m_first_seen
Column FIRST_SEEN.
Definition: table_esms_by_digest.h:71
ulonglong m_last_seen
Column LAST_SEEN.
Definition: table_esms_by_digest.h:73
PFS_digest_row m_digest
Columns DIGEST/DIGEST_TEXT.
Definition: table_esms_by_digest.h:65
ulonglong m_p99
Column QUANTILE_99.
Definition: table_esms_by_digest.h:78
ulonglong m_query_sample_seen
Column QUERY_SAMPLE_SEEN.
Definition: table_esms_by_digest.h:85
PFS_statement_stat_row m_stat
Columns COUNT_STAR, SUM/MIN/AVG/MAX TIMER_WAIT.
Definition: table_esms_by_digest.h:68
ulonglong m_query_sample_timer_wait
Column QUERY_SAMPLE_TIMER_WAIT.
Definition: table_esms_by_digest.h:87
Helpers to implement a performance schema table.