MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
MySQL 5.6.14 Source Code Document
replication of field metadata works.
ndbapi_simple.cpp
ndbapi_async.cpp
ndbapi_async1.cpp
ndbapi_retries.cpp
ndbapi_simple_index.cpp
ndbapi_scan.cpp
ndbapi_event.cpp
Adaptive Send Algorithm
MySQL Cluster Concepts
basic.cpp
common.hpp
br_test.cpp
ptr_binding_test.cpp
The Performance Schema main page
Performance schema: instrumentation interface page.
Performance schema: the aggregates page.
Todo List
Deprecated List
Modules
Namespaces
Classes
Files
File List
client
cmake
cmd-line-utils
dbug
extra
include
libevent
libmysql
libmysqld
libservices
mysql-test
mysys
mysys_ssl
packaging
plugin
regex
scripts
sql
sql-common
storage
archive
blackhole
csv
example
federated
heap
innobase
myisam
myisammrg
ndb
perfschema
unittest
cursor_by_account.cc
cursor_by_account.h
cursor_by_host.cc
cursor_by_host.h
cursor_by_thread.cc
cursor_by_thread.h
cursor_by_thread_connect_attr.cc
cursor_by_thread_connect_attr.h
cursor_by_user.cc
cursor_by_user.h
gen_pfs_lex_token.cc
ha_perfschema.cc
ha_perfschema.h
pfs.cc
pfs.h
pfs_account.cc
pfs_account.h
pfs_atomic.cc
pfs_atomic.h
pfs_autosize.cc
pfs_check.cc
pfs_column_types.h
pfs_column_values.cc
pfs_column_values.h
pfs_con_slice.cc
pfs_con_slice.h
pfs_defaults.cc
pfs_defaults.h
pfs_digest.cc
pfs_digest.h
pfs_engine_table.cc
pfs_engine_table.h
pfs_events.h
pfs_events_stages.cc
pfs_events_stages.h
pfs_events_statements.cc
pfs_events_statements.h
pfs_events_waits.cc
pfs_events_waits.h
pfs_global.cc
pfs_global.h
pfs_host.cc
pfs_host.h
pfs_instr.cc
pfs_instr.h
pfs_instr_class.cc
pfs_instr_class.h
pfs_lock.h
pfs_server.cc
pfs_server.h
pfs_setup_actor.cc
pfs_setup_actor.h
pfs_setup_object.cc
pfs_setup_object.h
pfs_stat.h
pfs_timer.cc
pfs_timer.h
pfs_user.cc
pfs_user.h
pfs_visitor.cc
pfs_visitor.h
table_accounts.cc
table_accounts.h
table_all_instr.cc
table_all_instr.h
table_esgs_by_account_by_event_name.cc
table_esgs_by_account_by_event_name.h
table_esgs_by_host_by_event_name.cc
table_esgs_by_host_by_event_name.h
table_esgs_by_thread_by_event_name.cc
table_esgs_by_thread_by_event_name.h
table_esgs_by_user_by_event_name.cc
table_esgs_by_user_by_event_name.h
table_esgs_global_by_event_name.cc
table_esgs_global_by_event_name.h
table_esms_by_account_by_event_name.cc
table_esms_by_account_by_event_name.h
table_esms_by_digest.cc
table_esms_by_digest.h
table_esms_by_host_by_event_name.cc
table_esms_by_host_by_event_name.h
table_esms_by_thread_by_event_name.cc
table_esms_by_thread_by_event_name.h
table_esms_by_user_by_event_name.cc
table_esms_by_user_by_event_name.h
table_esms_global_by_event_name.cc
table_esms_global_by_event_name.h
table_events_stages.cc
table_events_stages.h
table_events_statements.cc
table_events_statements.h
table_events_waits.cc
table_events_waits.h
table_events_waits_summary.cc
table_events_waits_summary.h
table_ews_by_account_by_event_name.cc
table_ews_by_account_by_event_name.h
table_ews_by_host_by_event_name.cc
table_ews_by_host_by_event_name.h
table_ews_by_thread_by_event_name.cc
table_ews_by_thread_by_event_name.h
table_ews_by_user_by_event_name.cc
table_ews_by_user_by_event_name.h
table_ews_global_by_event_name.cc
table_ews_global_by_event_name.h
table_file_instances.cc
table_file_instances.h
table_file_summary_by_event_name.cc
table_file_summary_by_event_name.h
table_file_summary_by_instance.cc
table_file_summary_by_instance.h
table_helper.cc
table_helper.h
table_host_cache.cc
table_host_cache.h
table_hosts.cc
table_hosts.h
table_os_global_by_type.cc
table_os_global_by_type.h
table_performance_timers.cc
table_performance_timers.h
table_session_account_connect_attrs.cc
table_session_account_connect_attrs.h
table_session_connect.cc
table_session_connect.h
table_session_connect_attrs.cc
table_session_connect_attrs.h
table_setup_actors.cc
table_setup_actors.h
table_setup_consumers.cc
table_setup_consumers.h
table_setup_instruments.cc
table_setup_instruments.h
table_setup_objects.cc
table_setup_objects.h
table_setup_timers.cc
table_setup_timers.h
table_socket_instances.cc
table_socket_instances.h
table_socket_summary_by_event_name.cc
table_socket_summary_by_event_name.h
table_socket_summary_by_instance.cc
table_socket_summary_by_instance.h
table_sync_instances.cc
table_sync_instances.h
table_threads.cc
table_threads.h
table_tiws_by_index_usage.cc
table_tiws_by_index_usage.h
table_tiws_by_table.cc
table_tiws_by_table.h
table_tlws_by_table.cc
table_tlws_by_table.h
table_users.cc
table_users.h
strings
support-files
tests
unittest
vio
zlib
File Members
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
table_ews_by_host_by_event_name.h
Go to the documentation of this file.
1
/* Copyright (c) 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
14
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
15
16
#ifndef TABLE_EWS_BY_HOST_BY_EVENT_NAME_H
17
#define TABLE_EWS_BY_HOST_BY_EVENT_NAME_H
18
24
#include "
pfs_column_types.h
"
25
#include "
pfs_engine_table.h
"
26
#include "
pfs_instr_class.h
"
27
#include "
pfs_instr.h
"
28
#include "
pfs_host.h
"
29
#include "
table_helper.h
"
30
40
struct
row_ews_by_host_by_event_name
41
{
43
PFS_host_row
m_host
;
45
PFS_event_name_row
m_event_name
;
47
PFS_stat_row
m_stat
;
48
};
49
57
struct
pos_ews_by_host_by_event_name
58
:
public
PFS_triple_index
,
public
PFS_instrument_view_constants
59
{
60
pos_ews_by_host_by_event_name
()
61
:
PFS_triple_index
(0, FIRST_VIEW, 1)
62
{}
63
64
inline
void
reset(
void
)
65
{
66
m_index_1
= 0;
67
m_index_2
= FIRST_VIEW;
68
m_index_3
= 1;
69
}
70
71
inline
bool
has_more_host(
void
)
72
{
return
(
m_index_1
< host_max); }
73
74
inline
void
next_host(
void
)
75
{
76
m_index_1
++;
77
m_index_2
= FIRST_VIEW;
78
m_index_3
= 1;
79
}
80
81
inline
bool
has_more_view(
void
)
82
{
return
(
m_index_2
<= LAST_VIEW); }
83
84
inline
void
next_view(
void
)
85
{
86
m_index_2
++;
87
m_index_3
= 1;
88
}
89
};
90
92
class
table_ews_by_host_by_event_name
:
public
PFS_engine_table
93
{
94
public
:
96
static
PFS_engine_table_share
m_share
;
97
static
PFS_engine_table
* create();
98
static
int
delete_all_rows();
99
100
virtual
int
rnd_next
();
101
virtual
int
rnd_pos
(
const
void
*pos);
102
virtual
void
reset_position
(
void
);
103
104
protected
:
105
virtual
int
read_row_values
(
TABLE
*
table
,
106
unsigned
char
*
buf
,
107
Field
**fields,
108
bool
read_all);
109
110
table_ews_by_host_by_event_name
();
111
112
public
:
113
~
table_ews_by_host_by_event_name
()
114
{}
115
116
protected
:
117
void
make_row(
PFS_host
*host,
PFS_instr_class
*klass);
118
119
private
:
121
static
THR_LOCK
m_table_lock;
123
static
TABLE_FIELD_DEF
m_field_def;
124
126
row_ews_by_host_by_event_name
m_row;
128
bool
m_row_exists;
130
pos_ews_by_host_by_event_name
m_pos;
132
pos_ews_by_host_by_event_name
m_next_pos;
133
};
134
136
#endif
storage
perfschema
table_ews_by_host_by_event_name.h
Generated on Sat Nov 9 2013 01:28:40 for MySQL 5.6.14 Source Code Document by
1.8.1.2