![]() |
MySQL
8.0.23
Source Code Documentation
|
Base class for structured and hierarchical EXPLAIN output formatters. More...
#include <opt_explain_format.h>
Public Member Functions | |
Explain_format () | |
virtual | ~Explain_format () |
virtual bool | is_hierarchical () const =0 |
A hierarchical text or a plain table. More... | |
virtual bool | is_tree () const |
virtual bool | send_headers (Query_result *result) |
Send EXPLAIN header item(s) to output stream. More... | |
virtual bool | begin_context (enum_parsing_context context, SELECT_LEX_UNIT *subquery=nullptr, const Explain_format_flags *flags=nullptr)=0 |
Enter a specified context. More... | |
virtual bool | end_context (enum_parsing_context context)=0 |
Leave the current context. More... | |
virtual bool | flush_entry ()=0 |
Flush TABLE/JOIN_TAB property set. More... | |
virtual qep_row * | entry ()=0 |
Get a pointer to the current TABLE/JOIN_TAB property set. More... | |
Protected Attributes | |
Query_result * | output |
output resulting data there More... | |
Private Member Functions | |
Explain_format (Explain_format &) | |
Explain_format & | operator= (Explain_format &) |
Base class for structured and hierarchical EXPLAIN output formatters.
|
private |
|
inline |
|
inlinevirtual |
|
pure virtual |
Enter a specified context.
context | context type |
subquery | for CTX_WHERE: unit of the subquery |
flags | Format flags, see Explain_format_flags. |
Implemented in Explain_format_tree, Explain_format_traditional, and Explain_format_JSON.
|
pure virtual |
Leave the current context.
context | current context type (for validation/debugging) |
Implemented in Explain_format_tree, Explain_format_traditional, and Explain_format_JSON.
|
pure virtual |
Get a pointer to the current TABLE/JOIN_TAB property set.
Implemented in Explain_format_tree, Explain_format_traditional, and Explain_format_JSON.
|
pure virtual |
Flush TABLE/JOIN_TAB property set.
For traditional EXPLAIN: output a single EXPLAIN row.
Implemented in Explain_format_tree, Explain_format_traditional, and Explain_format_JSON.
|
pure virtual |
A hierarchical text or a plain table.
true | Formatter produces hierarchical text |
false | Traditional explain |
Implemented in Explain_format_tree, Explain_format_traditional, and Explain_format_JSON.
|
inlinevirtual |
Reimplemented in Explain_format_tree.
|
private |
|
inlinevirtual |
Send EXPLAIN header item(s) to output stream.
result | output result set |
false | OK |
true | Error |
Reimplemented in Explain_format_traditional, Explain_format_JSON, and Explain_format_tree.
|
protected |
output resulting data there