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

#include <opt_explain_json.h>

Inheritance diagram for Explain_format_JSON:
Collaboration diagram for Explain_format_JSON:

Public Member Functions

virtual bool is_hierarchical () const
virtual bool send_headers (select_result *result)
virtual bool begin_context (Explain_context_enum context, SELECT_LEX_UNIT *subquery, const Explain_format_flags *flags)
virtual bool end_context (Explain_context_enum context)
virtual bool flush_entry ()
virtual qep_rowentry ()

Additional Inherited Members

- Static Public Member Functions inherited from Sql_alloc
static void * operator new (size_t size) throw ()
static void * operator new[] (size_t size) throw ()
static void * operator new[] (size_t size, MEM_ROOT *mem_root) throw ()
static void * operator new (size_t size, MEM_ROOT *mem_root) throw ()
static void operator delete (void *ptr, size_t size)
static void operator delete (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, size_t size)
- Public Attributes inherited from Explain_format
select_result * output
 output resulting data there

Detailed Description

Formatter class for EXPLAIN FORMAT=JSON output

Definition at line 31 of file opt_explain_json.h.

Member Function Documentation

bool Explain_format_JSON::begin_context ( Explain_context_enum  context,
SELECT_LEX_UNIT *  subquery,
const Explain_format_flags flags 
)
virtual

Enter a specified context

Parameters
contextcontext type
subqueryfor CTX_WHERE: unit of the subquery

Implements Explain_format.

Definition at line 1487 of file opt_explain_json.cc.

bool Explain_format_JSON::end_context ( Explain_context_enum  context)
virtual

Leave the current context

Parameters
contextcurrent context type (for validation/debugging)

Implements Explain_format.

Definition at line 1816 of file opt_explain_json.cc.

Here is the call graph for this function:

qep_row * Explain_format_JSON::entry ( )
virtual

Get a pointer to the current TABLE/JOIN_TAB property set

Implements Explain_format.

Definition at line 1481 of file opt_explain_json.cc.

virtual bool Explain_format_JSON::flush_entry ( )
inlinevirtual

Flush TABLE/JOIN_TAB property set

For traditional EXPLAIN: output a single EXPLAIN row.

Implements Explain_format.

Definition at line 46 of file opt_explain_json.h.

virtual bool Explain_format_JSON::is_hierarchical ( ) const
inlinevirtual

A hierarchical text or a plain table

Return values
trueFormatter produces hierarchical text
falseTraditional explain

Implements Explain_format.

Definition at line 40 of file opt_explain_json.h.

bool Explain_format_JSON::send_headers ( select_result *  result)
virtual

Send EXPLAIN header item(s) to output stream

Note
: This function caches the output result set pointer for further use.
Parameters
resultoutput result set
Return values
falseOK
trueError

Reimplemented from Explain_format.

Definition at line 1877 of file opt_explain_json.cc.

Here is the call graph for this function:


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