25#ifndef CURSOR_BY_ACCOUNT_H
26#define CURSOR_BY_ACCOUNT_H
63 int rnd_pos(
const void *pos)
override;
Definition: pfs_engine_table.h:301
Definition: pfs_engine_table.h:268
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: cursor_by_account.h:42
virtual bool match(PFS_account *pfs)=0
PFS_index_accounts(PFS_engine_key *key_1, PFS_engine_key *key_2)
Definition: cursor_by_account.h:47
~PFS_index_accounts() override=default
PFS_index_accounts(PFS_engine_key *key_1)
Definition: cursor_by_account.h:44
Cursor CURSOR_BY_ACCOUNT.
Definition: cursor_by_account.h:56
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: cursor_by_account.cc:66
PFS_simple_index m_next_pos
Next position.
Definition: cursor_by_account.h:80
PFS_simple_index m_pos
Current position.
Definition: cursor_by_account.h:78
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: cursor_by_account.cc:47
int index_next() override
Find key in index, read record.
Definition: cursor_by_account.cc:79
cursor_by_account(const PFS_engine_table_share *share)
Definition: cursor_by_account.cc:41
int rnd_next() override
Fetch the next row in this cursor.
Definition: cursor_by_account.cc:52
static ha_rows get_row_count()
Definition: cursor_by_account.cc:37
virtual int make_row(PFS_account *account)=0
~cursor_by_account() override=default
PFS_index_accounts * m_opened_index
Definition: cursor_by_account.h:83
my_off_t ha_rows
Definition: my_base.h:1141
Performance schema account (declarations).
Performance schema tables (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:66
Per account statistics.
Definition: pfs_account.h:67
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:359
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:567
Helpers to implement a performance schema table.