My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions
opt_explain_json_namespace::sort_ctx Class Reference
Inheritance diagram for opt_explain_json_namespace::sort_ctx:
opt_explain_json_namespace::join_ctx opt_explain_json_namespace::unit_ctx opt_explain_json_namespace::context Explain_context Sql_alloc opt_explain_json_namespace::sort_with_subqueries_ctx

List of all members.

Public Member Functions

 sort_ctx (Explain_context_enum type_arg, const char *name_arg, context *parent_arg, const Explain_format_flags *flags, Explain_sort_clause clause)

Protected Member Functions

virtual bool format_body (Opt_trace_context *json, Opt_trace_object *obj)

Detailed Description

Node class for CTX_SIMPLE_ORDER_BY, CTX_SIMPLE_GROUP_BY and CTX_SIMPLE_DISTINCT

CTX_JOIN context (see join_ctx class) may contain nested loop join node *or* ORDER BY/GROUP BY/DISTINCT node that is represented by this class:

join: { nested_loop: [ ... ] } or join: { order_by|group_by|distinct : { ... } }

CTX_ORDER_BY may contain nested loop join tree *or* GROUP BY/DISTINCT node:

order_by: { nested_loop|group_by|distinct: ... }

CTX_DISTINCT context structure:

distinct: { nested_loop|group_by: ... }

CTX_GROUP_BY:

group_by: { nested_loop: [ ... ] }

I.e. the most complex CTX_JOIN may have such a structure of JSON output as:

join: { order_by: { distinct: { group_by: { nested_loop: [ ... ] } } } } TODO


Member Function Documentation

virtual bool opt_explain_json_namespace::sort_ctx::format_body ( Opt_trace_context json,
Opt_trace_object obj 
) [inline, protected, virtual]

Format JSON object body

Parameters:
jsonFormatter
objObject of this body
Return values:
falseOk
trueError

Reimplemented from opt_explain_json_namespace::join_ctx.


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