My Project
|
Public Member Functions | |
duplication_weedout_ctx (context *parent_arg) | |
virtual size_t | id (bool hide) |
virtual bool | cacheable () |
virtual bool | dependent () |
virtual bool | add_join_tab (joinable_ctx *ctx) |
virtual bool | add_subquery (subquery_list_enum subquery_type, subquery_ctx *ctx) |
virtual bool | add_where_subquery (subquery_ctx *ctx, SELECT_LEX_UNIT *subquery) |
virtual bool | find_and_set_derived (context *subquery) |
virtual bool | format_nested_loop (Opt_trace_context *json) |
virtual bool | format_unit (Opt_trace_context *json) |
Helper function to format output for HAVING, ORDER/GROUP BY subqueries. | |
virtual void | set_sort (sort_ctx *ctx) |
Context class to represent JOIN_TABs in duplication weedout sequence
virtual bool opt_explain_json_namespace::duplication_weedout_ctx::add_join_tab | ( | joinable_ctx * | ctx | ) | [inline, virtual] |
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::join_ctx.
virtual bool opt_explain_json_namespace::duplication_weedout_ctx::add_subquery | ( | subquery_list_enum | subquery_type, |
subquery_ctx * | ctx | ||
) | [inline, 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::join_ctx.
virtual bool opt_explain_json_namespace::duplication_weedout_ctx::add_where_subquery | ( | subquery_ctx * | ctx, |
SELECT_LEX_UNIT * | subquery | ||
) | [inline, 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::join_ctx.
virtual bool opt_explain_json_namespace::duplication_weedout_ctx::find_and_set_derived | ( | context * | subquery | ) | [inline, virtual] |
Associate a CTX_DERIVED node with its CTX_JOIN_TAB node
subquery | derived subquery tree |
Reimplemented from opt_explain_json_namespace::join_ctx.
virtual bool opt_explain_json_namespace::duplication_weedout_ctx::format_nested_loop | ( | Opt_trace_context * | json | ) | [inline, virtual] |
Format nested loop join subtree (if any) to JSON formatter
json | Formatter |
false | Ok |
true | Error |
Reimplemented from opt_explain_json_namespace::join_ctx.
virtual size_t opt_explain_json_namespace::duplication_weedout_ctx::id | ( | bool | hide | ) | [inline, 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 |
Reimplemented from opt_explain_json_namespace::join_ctx.
virtual void opt_explain_json_namespace::duplication_weedout_ctx::set_sort | ( | sort_ctx * | ctx | ) | [inline, virtual] |
Set nested ORDER BY/GROUP BY/DISTINCT node to ctx
json | Formatter |
false | Ok |
true | Error |
Reimplemented from opt_explain_json_namespace::join_ctx.