MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
table_setup_objects Class Reference

#include <table_setup_objects.h>

Inheritance diagram for table_setup_objects:
Collaboration diagram for table_setup_objects:

Public Member Functions

virtual int rnd_next ()
virtual int rnd_pos (const void *pos)
virtual void reset_position (void)
- Public Member Functions inherited from PFS_engine_table
int read_row (TABLE *table, unsigned char *buf, Field **fields)
int update_row (TABLE *table, const unsigned char *old_buf, unsigned char *new_buf, Field **fields)
int delete_row (TABLE *table, const unsigned char *buf, Field **fields)
virtual int rnd_init (bool scan)
void get_position (void *ref)
void set_position (const void *ref)
void get_normalizer (PFS_instr_class *instr_class)
virtual ~PFS_engine_table ()

Static Public Member Functions

static PFS_engine_tablecreate ()
static int write_row (TABLE *table, unsigned char *buf, Field **fields)
static int delete_all_rows ()
static ha_rows get_row_count ()
- Static Public Member Functions inherited from PFS_engine_table
static const
PFS_engine_table_share
find_engine_table_share (const char *name)
static void set_field_ulong (Field *f, ulong value)
static void set_field_ulonglong (Field *f, ulonglong value)
static void set_field_char_utf8 (Field *f, const char *str, uint len)
static void set_field_varchar_utf8 (Field *f, const char *str, uint len)
static void set_field_longtext_utf8 (Field *f, const char *str, uint len)
static void set_field_enum (Field *f, ulonglong value)
static void set_field_timestamp (Field *f, ulonglong value)
static ulonglong get_field_enum (Field *f)
static Stringget_field_char_utf8 (Field *f, String *val)
static Stringget_field_varchar_utf8 (Field *f, String *val)

Static Public Attributes

static PFS_engine_table_share m_share

Protected Member Functions

virtual int read_row_values (TABLE *table, unsigned char *buf, Field **fields, bool read_all)
virtual int update_row_values (TABLE *table, const unsigned char *old_buf, unsigned char *new_buf, Field **fields)
virtual int delete_row_values (TABLE *table, const unsigned char *buf, Field **fields)
- Protected Member Functions inherited from PFS_engine_table
 PFS_engine_table (const PFS_engine_table_share *share, void *pos)

Additional Inherited Members

- Protected Attributes inherited from PFS_engine_table
const PFS_engine_table_sharem_share_ptr
void * m_pos_ptr
time_normalizerm_normalizer
enum PFS_class_type m_class_type

Detailed Description

Table PERFORMANCE_SCHEMA.SETUP_OBJECTS.

Definition at line 54 of file table_setup_objects.h.

Member Function Documentation

PFS_engine_table * table_setup_objects::create ( void  )
static

Table builder.

Definition at line 93 of file table_setup_objects.cc.

int table_setup_objects::delete_row_values ( TABLE table,
const unsigned char *  buf,
Field **  fields 
)
protectedvirtual

Delete a row.

Parameters
tableTable handle
bufRow buffer
fieldsTable fields

Reimplemented from PFS_engine_table.

Definition at line 338 of file table_setup_objects.cc.

int table_setup_objects::read_row_values ( TABLE table,
unsigned char *  buf,
Field **  fields,
bool  read_all 
)
protectedvirtual

Read the current row values.

Parameters
tableTable handle
bufrow buffer
fieldsTable fields
read_alltrue if all columns are read.

Implements PFS_engine_table.

Definition at line 243 of file table_setup_objects.cc.

Here is the call graph for this function:

void table_setup_objects::reset_position ( void  )
virtual

Reset the cursor position to the beginning of the table.

Implements PFS_engine_table.

Definition at line 180 of file table_setup_objects.cc.

int table_setup_objects::rnd_next ( )
virtual

Fetch the next row in this cursor.

Implements PFS_engine_table.

Definition at line 186 of file table_setup_objects.cc.

Here is the call graph for this function:

int table_setup_objects::rnd_pos ( const void *  pos)
virtual

Fetch a row by position.

Parameters
posposition to fetch

Implements PFS_engine_table.

Definition at line 206 of file table_setup_objects.cc.

Here is the call graph for this function:

int table_setup_objects::update_row_values ( TABLE table,
const unsigned char *  old_buf,
unsigned char *  new_buf,
Field **  fields 
)
protectedvirtual

Update the current row values.

Parameters
tableTable handle
old_bufold row buffer
new_bufnew row buffer
fieldsTable fields

Reimplemented from PFS_engine_table.

Definition at line 295 of file table_setup_objects.cc.

Here is the call graph for this function:

Member Data Documentation

PFS_engine_table_share table_setup_objects::m_share
static
Initial value:
{
{ C_STRING_WITH_LEN("setup_objects") },
table_setup_objects::write_row,
table_setup_objects::delete_all_rows,
table_setup_objects::get_row_count,
1000,
&m_table_lock,
&m_field_def,
false
}

Table share.

Definition at line 58 of file table_setup_objects.h.


The documentation for this class was generated from the following files: