25#ifndef CURSOR_BY_HOST_H
26#define CURSOR_BY_HOST_H
59 int rnd_pos(
const void *pos)
override;
Definition: pfs_engine_table.h:300
Definition: pfs_engine_table.h:268
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: cursor_by_host.h:42
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:44
Cursor CURSOR_BY_HOST.
Definition: cursor_by_host.h:52
cursor_by_host(const PFS_engine_table_share *share)
Definition: cursor_by_host.cc:40
int index_next() override
Find key in index, read record.
Definition: cursor_by_host.cc:75
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:62
~cursor_by_host() override=default
PFS_simple_index m_next_pos
Next position.
Definition: cursor_by_host.h:76
PFS_simple_index m_pos
Current position.
Definition: cursor_by_host.h:74
PFS_index_hosts * m_opened_index
Definition: cursor_by_host.h:79
static ha_rows get_row_count()
Definition: cursor_by_host.cc:36
int rnd_next() override
Fetch the next row in this cursor.
Definition: cursor_by_host.cc:48
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: cursor_by_host.cc:43
my_off_t ha_rows
Definition: my_base.h:1140
const char * host
Definition: mysqladmin.cc:59
Performance schema tables (declarations).
Performance schema host (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:66
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:358
Per host statistics.
Definition: pfs_host.h:64
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:566
Helpers to implement a performance schema table.