MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
opt_explain_traditional.h
1 /* Copyright (c) 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 Foundation,
14  51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
15 
16 
17 #ifndef OPT_EXPLAIN_FORMAT_TRADITIONAL_INCLUDED
18 #define OPT_EXPLAIN_FORMAT_TRADITIONAL_INCLUDED
19 
20 #include "opt_explain_format.h"
21 
27 {
28  class Item_null *nil;
29  qep_row column_buffer;
30 
31 public:
32  Explain_format_traditional() : nil(NULL) {}
33 
34  virtual bool is_hierarchical() const { return false; }
35  virtual bool send_headers(select_result *result);
36  virtual bool begin_context(Explain_context_enum,
37  SELECT_LEX_UNIT *subquery,
39  {
40  return false;
41  }
42  virtual bool end_context(Explain_context_enum) { return false; }
43  virtual bool flush_entry();
44  virtual qep_row *entry() { return &column_buffer; }
45 
46 private:
47  bool push_select_type(List<Item> *items);
48 };
49 
50 #endif//OPT_EXPLAIN_FORMAT_TRADITIONAL_INCLUDED