|
MySQL 5.6.14 Source Code Document
|


Public Member Functions | |
| join_ctx (Explain_context_enum type_arg, const char *name_arg, context *parent_arg) | |
| virtual bool | add_join_tab (joinable_ctx *ctx) |
| virtual void | set_sort (sort_ctx *ctx) |
| virtual bool | find_and_set_derived (context *subquery) |
| virtual bool | add_subquery (subquery_list_enum subquery_type, subquery_ctx *ctx) |
| virtual bool | format_nested_loop (Opt_trace_context *json) |
| virtual size_t | id (bool hide) |
| virtual bool | cacheable () |
| virtual bool | dependent () |
| virtual bool | add_where_subquery (subquery_ctx *ctx, SELECT_LEX_UNIT *subquery) |
Public Member Functions inherited from opt_explain_json_namespace::unit_ctx | |
| unit_ctx (Explain_context_enum type_arg, const char *name_arg, context *parent_arg) | |
| bool | has_no_subqueries () const |
| virtual bool | format_unit (Opt_trace_context *json) |
| Helper function to format output for HAVING, ORDER/GROUP BY subqueries. | |
Public Member Functions inherited from opt_explain_json_namespace::context | |
| context (Explain_context_enum type_arg, const char *name_arg, context *parent_arg) | |
| virtual bool | format (Opt_trace_context *json) |
| bool | is_query_block () const |
| virtual class qep_row * | entry () |
| virtual void | set_child (context *child) |
| virtual void | set_union_result (union_result_ctx *ctx) |
| associate CTX_UNION_RESULT node with CTX_UNION node | |
| virtual bool | add_query_spec (context *ctx) |
| virtual bool | format_derived (Opt_trace_context *json) |
| Helper function to format output for derived subquery if any. | |
| virtual bool | format_where (Opt_trace_context *json) |
| Helper function to format output for associated WHERE subqueries if any. | |
Public Member Functions inherited from Explain_context | |
| Explain_context (Explain_context_enum type_arg) | |
Protected Member Functions | |
| virtual bool | format_body (Opt_trace_context *json, Opt_trace_object *obj) |
Protected Attributes | |
| List< joinable_ctx > | join_tabs |
| hosted JOIN_TAB nodes | |
| sort_ctx * | sort |
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 opt_explain_json_namespace::context | |
| context * | parent |
| link to parent node or NULL | |
Node class for the CTX_JOIN context
Definition at line 1022 of file opt_explain_json.cc.
|
inlinevirtual |
Add a CTX_JOIN_TAB node to a CTX_JOIN node
| ctx | CTX_JOIN_TAB node |
| false | Ok |
| true | Error |
Reimplemented from opt_explain_json_namespace::context.
Reimplemented in opt_explain_json_namespace::duplication_weedout_ctx, and opt_explain_json_namespace::materialize_ctx.
Definition at line 1036 of file opt_explain_json.cc.
|
virtual |
Append a subquery node to the specified list of the unit node
| subquery_type | Describes the Item tree where the subquery exists |
| ctx | Subquery node |
| false | Ok |
| true | Error |
Reimplemented from opt_explain_json_namespace::unit_ctx.
Reimplemented in opt_explain_json_namespace::duplication_weedout_ctx, opt_explain_json_namespace::materialize_ctx, and opt_explain_json_namespace::sort_with_subqueries_ctx.
Definition at line 1189 of file opt_explain_json.cc.


|
virtual |
Associate WHERE subqueries of given context and unit with this object
| ctx | Context of WHERE subquery |
| subquery | For CTX_JOIN_TAB: match given unit with a previously collected by the register_where_subquery function. |
Reimplemented from opt_explain_json_namespace::context.
Reimplemented in opt_explain_json_namespace::duplication_weedout_ctx, and opt_explain_json_namespace::materialize_ctx.
Definition at line 1305 of file opt_explain_json.cc.

|
virtual |
Associate a CTX_DERIVED node with its CTX_JOIN_TAB node
| subquery | derived subquery tree |
Reimplemented from opt_explain_json_namespace::context.
Reimplemented in opt_explain_json_namespace::duplication_weedout_ctx, and opt_explain_json_namespace::materialize_ctx.
Definition at line 1171 of file opt_explain_json.cc.


|
protectedvirtual |
Format JSON object body
| json | Formatter |
| obj | Object of this body |
| false | Ok |
| true | Error |
Implements opt_explain_json_namespace::context.
Reimplemented in opt_explain_json_namespace::sort_ctx.
Definition at line 1226 of file opt_explain_json.cc.

|
virtual |
Format nested loop join subtree (if any) to JSON formatter
| json | Formatter |
| false | Ok |
| true | Error |
Reimplemented from opt_explain_json_namespace::context.
Reimplemented in opt_explain_json_namespace::duplication_weedout_ctx, and opt_explain_json_namespace::materialize_ctx.
Definition at line 1237 of file opt_explain_json.cc.


|
virtual |
Analogue of the "id" column in the traditional EXPLAIN output
| hide | if true, ban the output of K_SELECT_ID JSON property in the underlying table_with_where_and_derived_ctx objects |
Implements opt_explain_json_namespace::context.
Reimplemented in opt_explain_json_namespace::duplication_weedout_ctx, and opt_explain_json_namespace::materialize_ctx.
Definition at line 1287 of file opt_explain_json.cc.


|
inlinevirtual |
Set nested ORDER BY/GROUP BY/DISTINCT node to ctx
| json | Formatter |
| false | Ok |
| true | Error |
Reimplemented from opt_explain_json_namespace::context.
Reimplemented in opt_explain_json_namespace::duplication_weedout_ctx, and opt_explain_json_namespace::materialize_ctx.
Definition at line 1041 of file opt_explain_json.cc.