25#ifndef CURSOR_BY_USER_H
26#define CURSOR_BY_USER_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_user.h:42
virtual bool match(PFS_user *pfs)=0
PFS_index_users(PFS_engine_key *key_1)
Definition: cursor_by_user.h:44
~PFS_index_users() override=default
Cursor CURSOR_BY_USER.
Definition: cursor_by_user.h:52
PFS_simple_index m_pos
Current position.
Definition: cursor_by_user.h:74
int index_next() override
Find key in index, read record.
Definition: cursor_by_user.cc:75
PFS_index_users * m_opened_index
Definition: cursor_by_user.h:79
PFS_simple_index m_next_pos
Next position.
Definition: cursor_by_user.h:76
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: cursor_by_user.cc:43
static ha_rows get_row_count()
Definition: cursor_by_user.cc:36
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: cursor_by_user.cc:62
cursor_by_user(const PFS_engine_table_share *share)
Definition: cursor_by_user.cc:40
int rnd_next() override
Fetch the next row in this cursor.
Definition: cursor_by_user.cc:48
~cursor_by_user() override=default
virtual int make_row(PFS_user *user)=0
my_off_t ha_rows
Definition: my_base.h:1140
char * user
Definition: mysqladmin.cc:60
Performance schema tables (declarations).
Performance schema user (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:66
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:358
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:566
Per user statistics.
Definition: pfs_user.h:63
Helpers to implement a performance schema table.