25#ifndef TABLE_ESMH_GLOBAL_H
26#define TABLE_ESMH_GLOBAL_H
99 int rnd_pos(
const void *pos)
override;
101 int index_init(uint idx,
bool sorted)
override;
106 bool read_all)
override;
Definition: pfs_engine_table.h:301
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_esmh_global.h:40
bool match_bucket(ulong bucket_index)
Definition: table_esmh_global.cc:80
~PFS_index_esmh_global() override=default
PFS_key_bucket_number m_key_1
Definition: table_esmh_global.h:50
PFS_index_esmh_global()
Definition: table_esmh_global.h:42
Definition: table_helper.h:1559
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Table PERFORMANCE_SCHEMA.EVENTS_STATEMENTS_HISTOGRAM_GLOBAL.
Definition: table_esmh_global.h:86
int make_row(ulong bucket_index)
Definition: table_esmh_global.cc:176
static THR_LOCK m_table_lock
Table share lock.
Definition: table_esmh_global.h:119
PFS_index_esmh_global * m_opened_index
Definition: table_esmh_global.h:131
static PFS_engine_table_share m_share
Table share.
Definition: table_esmh_global.h:91
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_esmh_global.cc:88
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_esmh_global.cc:113
void materialize()
Definition: table_esmh_global.cc:155
table_esmh_global()
Definition: table_esmh_global.cc:101
PFS_simple_index pos_t
Definition: table_esmh_global.h:87
~table_esmh_global() override=default
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_esmh_global.cc:108
static Plugin_table m_table_def
Table definition.
Definition: table_esmh_global.h:121
static ha_rows get_row_count()
Definition: table_esmh_global.cc:99
bool m_materialized
Definition: table_esmh_global.h:133
int index_init(uint idx, bool sorted) override
Definition: table_esmh_global.cc:134
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_esmh_global.cc:206
pos_t m_next_pos
Next position.
Definition: table_esmh_global.h:129
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_esmh_global.cc:124
row_esmh_global m_row
Definition: table_esmh_global.h:125
pos_t m_pos
Current position.
Definition: table_esmh_global.h:127
int index_next() override
Find key in index, read record.
Definition: table_esmh_global.cc:142
PFS_esmh_global_histogram m_materialized_histogram
Current row.
Definition: table_esmh_global.h:124
static int delete_all_rows()
Definition: table_esmh_global.cc:94
my_off_t ha_rows
Definition: my_base.h:1141
unsigned long long int ulonglong
Definition: my_inttypes.h:56
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
Definition: buf0block_hint.cc:30
#define NUMBER_OF_BUCKETS
Number of buckets used in histograms.
Definition: pfs_histogram.h:36
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:359
A row of table PERFORMANCE_SCHEMA.EVENTS_STATEMENTS_HISTOGRAM_GLOBAL.
Definition: table_esmh_global.h:58
ulonglong m_count_bucket_and_lower
Column COUNT_BUCKET_AND_LOWER.
Definition: table_esmh_global.h:62
ulonglong m_count_bucket
Column BUCKET_NUMBER.
Definition: table_esmh_global.h:60
Definition: table_esmh_global.h:65
PFS_esmh_global_bucket m_buckets[NUMBER_OF_BUCKETS]
Statistics for all buckets.
Definition: table_esmh_global.h:67
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:567
Definition: thr_lock.h:139
Definition: table_esmh_global.h:70
ulonglong m_bucket_timer_low
Column BUCKET_TIMER_LOW.
Definition: table_esmh_global.h:74
ulonglong m_count_bucket
Column COUNT_BUCKET.
Definition: table_esmh_global.h:78
ulong m_bucket_number
Column BUCKET_NUMBER.
Definition: table_esmh_global.h:72
ulonglong m_bucket_timer_high
Column BUCKET_TIMER_HIGH.
Definition: table_esmh_global.h:76
double m_percentile
Column BUCKET_QUANTILE.
Definition: table_esmh_global.h:82
ulonglong m_count_bucket_and_lower
Column COUNT_BUCKET_AND_LOWER.
Definition: table_esmh_global.h:80
Helpers to implement a performance schema table.