24#ifndef CURSOR_BY_HOST_H
25#define CURSOR_BY_HOST_H
58 int rnd_pos(
const void *pos)
override;
Definition: pfs_engine_table.h:299
Definition: pfs_engine_table.h:267
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:69
Definition: cursor_by_host.h:41
virtual bool match(PFS_host *pfs)=0
~PFS_index_hosts() override=default
PFS_index_hosts(PFS_engine_key *key_1)
Definition: cursor_by_host.h:43
Cursor CURSOR_BY_HOST.
Definition: cursor_by_host.h:51
cursor_by_host(const PFS_engine_table_share *share)
Definition: cursor_by_host.cc:39
int index_next() override
Find key in index, read record.
Definition: cursor_by_host.cc:74
virtual int make_row(PFS_host *host)=0
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: cursor_by_host.cc:61
~cursor_by_host() override=default
PFS_simple_index m_next_pos
Next position.
Definition: cursor_by_host.h:75
PFS_simple_index m_pos
Current position.
Definition: cursor_by_host.h:73
PFS_index_hosts * m_opened_index
Definition: cursor_by_host.h:78
static ha_rows get_row_count()
Definition: cursor_by_host.cc:35
int rnd_next() override
Fetch the next row in this cursor.
Definition: cursor_by_host.cc:47
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: cursor_by_host.cc:42
my_off_t ha_rows
Definition: my_base.h:1139
const char * host
Definition: mysqladmin.cc:63
Performance schema tables (declarations).
Performance schema host (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:65
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:357
Per host statistics.
Definition: pfs_host.h:63
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:557
Helpers to implement a performance schema table.