My Project
Public Member Functions
Explain_format_JSON Class Reference

#include <opt_explain_json.h>

Inheritance diagram for Explain_format_JSON:
Explain_format Sql_alloc

List of all members.

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 ()

Detailed Description

Formatter class for EXPLAIN FORMAT=JSON output

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

contextcontext type
subqueryfor CTX_WHERE: unit of the subquery

Implements Explain_format.

bool Explain_format_JSON::end_context ( Explain_context_enum  context) [virtual]

Leave the current context

contextcurrent context type (for validation/debugging)

Implements Explain_format.

Get a pointer to the current TABLE/JOIN_TAB property set

Implements Explain_format.

virtual bool Explain_format_JSON::flush_entry ( ) [inline, virtual]

Flush TABLE/JOIN_TAB property set

For traditional EXPLAIN: output a single EXPLAIN row.

Implements Explain_format.

virtual bool Explain_format_JSON::is_hierarchical ( ) const [inline, virtual]

A hierarchical text or a plain table

Return values:
trueFormatter produces hierarchical text
falseTraditional explain

Implements Explain_format.

bool Explain_format_JSON::send_headers ( select_result *  result) [virtual]

Send EXPLAIN header item(s) to output stream

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

Reimplemented from Explain_format.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines