MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
table_esgs_global_by_event_name.h
Go to the documentation of this file.
1 /* Copyright (c) 2010, 2011, 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 St, Fifth Floor, Boston, MA 02110-1301 USA */
15 
16 #ifndef TABLE_ESGS_GLOBAL_BY_EVENT_NAME_H
17 #define TABLE_ESGS_GLOBAL_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 "table_helper.h"
29 
40 {
45 };
46 
49 {
50 public:
53  static PFS_engine_table* create();
54  static int delete_all_rows();
55 
56  virtual int rnd_init(bool scan);
57  virtual int rnd_next();
58  virtual int rnd_pos(const void *pos);
59  virtual void reset_position(void);
60 
61 protected:
62  virtual int read_row_values(TABLE *table,
63  unsigned char *buf,
64  Field **fields,
65  bool read_all);
66 
68 
69 public:
71  {}
72 
73 protected:
74  void make_row(PFS_stage_class *klass);
75 
76 private:
78  static THR_LOCK m_table_lock;
80  static TABLE_FIELD_DEF m_field_def;
81 
85  bool m_row_exists;
87  PFS_simple_index m_pos;
89  PFS_simple_index m_next_pos;
90 };
91 
93 #endif