MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
table_setup_objects.h
Go to the documentation of this file.
1
/* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
2
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; version 2 of the License.
6
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
11
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software Foundation,
14
51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
15
16
#ifndef TABLE_SETUP_OBJECTS_H
17
#define TABLE_SETUP_OBJECTS_H
18
24
#include "
pfs_engine_table.h
"
25
#include "
table_helper.h
"
26
27
struct
PFS_setup_object
;
28
35
struct
row_setup_objects
36
{
38
enum_object_type
m_object_type
;
40
char
m_schema_name
[NAME_LEN];
42
uint
m_schema_name_length
;
44
char
m_object_name
[NAME_LEN];
46
uint
m_object_name_length
;
48
bool
*
m_enabled_ptr
;
50
bool
*
m_timed_ptr
;
51
};
52
54
class
table_setup_objects
:
public
PFS_engine_table
55
{
56
public
:
58
static
PFS_engine_table_share
m_share
;
60
static
PFS_engine_table
*
create
();
61
static
int
write_row(
TABLE
*
table
,
unsigned
char
*
buf
,
Field
**fields);
62
static
int
delete_all_rows();
63
static
ha_rows get_row_count();
64
65
virtual
int
rnd_next
();
66
virtual
int
rnd_pos
(
const
void
*pos);
67
virtual
void
reset_position
(
void
);
68
69
protected
:
70
virtual
int
read_row_values
(
TABLE
*
table
,
71
unsigned
char
*
buf
,
72
Field
**fields,
73
bool
read_all);
74
75
virtual
int
update_row_values
(
TABLE
*
table
,
76
const
unsigned
char
*old_buf,
77
unsigned
char
*new_buf,
78
Field
**fields);
79
80
virtual
int
delete_row_values
(
TABLE
*
table
,
81
const
unsigned
char
*
buf
,
82
Field
**fields);
83
84
table_setup_objects
();
85
86
public
:
87
~
table_setup_objects
()
88
{}
89
90
private
:
91
void
make_row(
PFS_setup_object
*pfs);
92
94
static
THR_LOCK
m_table_lock;
96
static
TABLE_FIELD_DEF
m_field_def;
97
99
row_setup_objects
m_row;
101
bool
m_row_exists;
103
PFS_simple_index
m_pos;
105
PFS_simple_index
m_next_pos;
106
};
107
109
#endif
storage
perfschema
table_setup_objects.h
Generated on Sat Nov 9 2013 01:28:41 for MySQL 5.6.14 Source Code Document by
1.8.1.2