MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
opt_explain_json_namespace::union_result_ctx Class Reference
Inheritance diagram for opt_explain_json_namespace::union_result_ctx:
Collaboration diagram for opt_explain_json_namespace::union_result_ctx:

Public Member Functions

 union_result_ctx (context *parent_arg)
virtual size_t id (bool hide)
virtual bool cacheable ()
virtual bool dependent ()
virtual qep_rowentry ()
virtual bool format_unit (Opt_trace_context *json)
 Helper function to format output for HAVING, ORDER/GROUP BY subqueries.
void push_down_query_specs (List< context > *specs)
virtual bool add_subquery (subquery_list_enum subquery_type, subquery_ctx *ctx)
virtual bool format (Opt_trace_context *json)
virtual bool format_body (Opt_trace_context *json, Opt_trace_object *obj)
- Public Member Functions inherited from opt_explain_json_namespace::table_base_ctx
 table_base_ctx (Explain_context_enum type_arg, const char *name_arg, context *parent_arg)
- Public Member Functions inherited from opt_explain_json_namespace::context
 context (Explain_context_enum type_arg, const char *name_arg, context *parent_arg)
bool is_query_block () const
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 format_nested_loop (Opt_trace_context *json)
virtual bool add_join_tab (joinable_ctx *ctx)
virtual void set_sort (sort_ctx *ctx)
virtual bool add_query_spec (context *ctx)
virtual bool find_and_set_derived (context *subquery)
virtual bool add_where_subquery (subquery_ctx *ctx, SELECT_LEX_UNIT *subquery)
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)
- Public Member Functions inherited from qep_row
void cleanup ()
virtual void register_where_subquery (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

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
contextparent
 link to parent node or NULL
- Public Attributes inherited from qep_row
column< uint > col_id
 "id" column: seq. number of SELECT withing the query
column< SELECT_LEX::type_enum > col_select_type
 "select_type" column
mem_root_str col_table_name
 "table" to which the row of output refers
List< const char > col_partitions
 "partitions" column
mem_root_str col_join_type
 "type" column, see join_type_str array
List< const char > col_possible_keys
 "possible_keys": comma-separated list
mem_root_str col_key
 "key" column: index that is actually decided to use
mem_root_str col_key_len
 "key_length" column: length of the "key" above
List< const char > col_ref
 "ref":columns/constants which are compared to "key"
column< longlong > col_rows
 "rows": estimated number of examined table rows
column< float > col_filtered
 "filtered": % of rows filtered by condition
List< extracol_extra
 "extra" column (traditional) or property list
mem_root_str col_message
 replaces "Extra" column if not empty
mem_root_str col_attached_condition
 former "Using where"
uint query_block_id
 query block id for materialized subqueries
List
< opt_explain_json_namespace::context
derived_from
List< const char > col_key_parts
 used parts of the key
bool is_dependent
bool is_cacheable
bool using_temporary
bool is_materialized_from_subquery
bool is_update
bool is_delete
- Protected Attributes inherited from opt_explain_json_namespace::table_base_ctx
bool is_hidden_id
- Protected Attributes inherited from opt_explain_json_namespace::context
const char * name

Detailed Description

Node class for the CTX_UNION_RESULT

Definition at line 635 of file opt_explain_json.cc.

Member Function Documentation

virtual bool opt_explain_json_namespace::union_result_ctx::add_subquery ( subquery_list_enum  subquery_type,
subquery_ctx ctx 
)
inlinevirtual

Append a subquery node to the specified list of the unit node

Parameters
subquery_typeDescribes the Item tree where the subquery exists
ctxSubquery node
Return values
falseOk
trueError

Reimplemented from opt_explain_json_namespace::unit_ctx.

Definition at line 658 of file opt_explain_json.cc.

virtual bool opt_explain_json_namespace::union_result_ctx::format ( Opt_trace_context json)
inlinevirtual

Pass the node with its child nodes to a JSON formatter

Parameters
jsonFormatter
Return values
falseOk
trueError
Note
The join_ctx class overloads this function.

Reimplemented from opt_explain_json_namespace::context.

Definition at line 672 of file opt_explain_json.cc.

Here is the call graph for this function:

virtual bool opt_explain_json_namespace::union_result_ctx::format_body ( Opt_trace_context json,
Opt_trace_object obj 
)
inlinevirtual

Format JSON object body

Parameters
jsonFormatter
objObject of this body
Return values
falseOk
trueError

Reimplemented from opt_explain_json_namespace::table_base_ctx.

Definition at line 695 of file opt_explain_json.cc.

Here is the call graph for this function:

virtual size_t opt_explain_json_namespace::union_result_ctx::id ( bool  hide)
inlinevirtual

Analogue of the "id" column in the traditional EXPLAIN output

Parameters
hideif true, ban the output of K_SELECT_ID JSON property in the underlying table_with_where_and_derived_ctx objects
Returns
"Select number" that is associated with this node

Reimplemented from opt_explain_json_namespace::table_base_ctx.

Definition at line 649 of file opt_explain_json.cc.


The documentation for this class was generated from the following file: