|
| RPL_Table_ref (const char *db_name_arg, size_t db_length_arg, const char *table_name_arg, size_t table_name_length_arg, const char *alias_arg, enum thr_lock_type lock_type_arg) |
|
| Table_ref ()=default |
|
| Table_ref (TABLE *table_arg) |
| Only to be used by legacy code that temporarily needs a Table_ref, more specifically: Query_result_create::binlog_show_create_table(). More...
|
|
| Table_ref (const char *db_name, const char *table_name, enum thr_lock_type lock_type) |
| Constructor that can be used when the strings are null terminated. More...
|
|
| Table_ref (TABLE *table_arg, const char *db_name_arg, size_t db_length_arg, const char *table_name_arg, size_t table_name_length_arg, const char *alias_arg, enum thr_lock_type lock_type_arg) |
| Creates a Table_ref object with pre-allocated strings for database, table and alias. More...
|
|
| Table_ref (const char *db_name, const char *table_name, const char *alias, enum thr_lock_type lock_type) |
| Constructor that can be used when the strings are null terminated. More...
|
|
| Table_ref (TABLE *table_arg, const char *alias_arg) |
| This constructor can be used when a Table_ref is needed for an existing temporary table. More...
|
|
| Table_ref (TABLE *table_arg, const char *alias_arg, enum_mdl_type mdl_type) |
| Sets an explicit enum_mdl_type value, without initializing m_lock_descriptor. More...
|
|
| Table_ref (const char *db_name, const char *table_name_arg, enum thr_lock_type lock_type_arg, enum enum_mdl_type mdl_request_type) |
|
| Table_ref (const char *db_name, size_t db_length_arg, const char *table_name_arg, size_t table_name_length_arg, enum thr_lock_type lock_type_arg, enum enum_mdl_type mdl_request_type) |
|
| Table_ref (const char *db_name, size_t db_length_arg, const char *table_name_arg, size_t table_name_length_arg, enum thr_lock_type lock_type_arg) |
|
| Table_ref (const char *db_name, size_t db_length_arg, const char *table_name_arg, size_t table_name_length_arg, const char *alias_arg, enum enum_mdl_type mdl_request_type) |
| Sets an explicit enum_mdl_type value, without initializing m_lock_descriptor. More...
|
|
| Table_ref (const char *db_name, size_t db_length_arg, const char *table_name_arg, size_t table_name_length_arg, const char *alias_arg, enum thr_lock_type lock_type_arg, enum enum_mdl_type mdl_request_type) |
|
| Table_ref (const char *db_name_arg, size_t db_length_arg, const char *table_name_arg, size_t table_name_length_arg, const char *alias_arg, enum thr_lock_type lock_type_arg) |
|
Item ** | join_cond_ref () |
|
Item * | join_cond () const |
|
void | set_join_cond (Item *val) |
|
Item * | join_cond_optim () const |
|
void | set_join_cond_optim (Item *cond) |
|
Item ** | join_cond_optim_ref () |
|
bool | is_sj_nest () const |
|
bool | is_aj_nest () const |
|
bool | is_sj_or_aj_nest () const |
|
void | set_sj_or_aj_nest () |
| Makes the next a semi/antijoin nest. More...
|
|
bool | merge_underlying_tables (Query_block *select) |
| Merge tables from a query block into a nested join structure. More...
|
|
void | reset () |
| Reset table. More...
|
|
int | view_check_option (THD *thd) const |
| Evaluate the check option of a view. More...
|
|
void | print (const THD *thd, String *str, enum_query_type query_type) const |
| Produce a textual identification of this object. More...
|
|
bool | check_single_table (Table_ref **table_ref, table_map map) |
| Check which single table inside a view that matches a table map. More...
|
|
bool | set_insert_values (MEM_ROOT *mem_root) |
| Allocate a buffer for inserted column values. More...
|
|
Table_ref * | first_leaf_for_name_resolution () |
| Retrieve the first (left-most) leaf in a nested join tree with respect to name resolution. More...
|
|
Table_ref * | last_leaf_for_name_resolution () |
| Retrieve the last (right-most) leaf in a nested join tree with respect to name resolution. More...
|
|
bool | is_leaf_for_name_resolution () const |
| Test if this is a leaf with respect to name resolution. More...
|
|
const Table_ref * | top_table () const |
| Return the outermost view this table belongs to, or itself. More...
|
|
Table_ref * | top_table () |
|
bool | prepare_check_option (THD *thd, bool is_cascaded=false) |
| Prepare check option for a view. More...
|
|
bool | merge_where (THD *thd) |
| Merge WHERE condition of view or derived table into outer query. More...
|
|
bool | prepare_replace_filter (THD *thd) |
| Prepare replace filter for a view (used for REPLACE command) More...
|
|
bool | is_view () const |
| Return true if this represents a named view. More...
|
|
bool | is_derived () const |
| Return true if this represents a derived table (an unnamed view) More...
|
|
bool | is_view_or_derived () const |
| Return true if this represents a named view or a derived table. More...
|
|
bool | is_table_function () const |
| Return true if this represents a table function. More...
|
|
bool | is_recursive_reference () const |
|
bool | is_base_table () const |
|
bool | set_recursive_reference () |
|
bool | is_internal () const |
|
bool | is_placeholder () const |
|
bool | is_mergeable () const |
| Return true if view or derived table and can be merged. More...
|
|
bool | materializable_is_const () const |
| Checks if this is a table that contains zero rows or one row, and that can be materialized during optimization. More...
|
|
bool | is_merged () const |
| Return true if this is a derived table or view that is merged. More...
|
|
void | set_merged () |
| Set table to be merged. More...
|
|
bool | uses_materialization () const |
| Return true if this is a materializable derived table/view. More...
|
|
void | set_uses_materialization () |
| Set table to be materialized. More...
|
|
bool | is_updatable () const |
| Return true if table is updatable. More...
|
|
void | set_updatable () |
| Set table as updatable. (per default, a table is non-updatable) More...
|
|
bool | is_insertable () const |
| Return true if table is insertable-into. More...
|
|
void | set_insertable () |
| Set table as insertable-into. (per default, a table is not insertable) More...
|
|
bool | is_updated () const |
| Return true if table is being updated. More...
|
|
void | set_updated () |
| Set table and all referencing views as being updated. More...
|
|
bool | is_inserted () const |
| Return true if table is being inserted into. More...
|
|
void | set_inserted () |
| Set table and all referencing views as being inserted into. More...
|
|
bool | is_deleted () const |
| Return true if table is being deleted from. More...
|
|
void | set_deleted () |
| Set table and all referencing views as being deleted from. More...
|
|
void | set_fulltext_searched () |
| Set table as full-text search (default is not fulltext searched) More...
|
|
bool | is_fulltext_searched () const |
| Returns true if a MATCH function references this table. More...
|
|
bool | is_external () const |
| Is this table only available in an external storage engine? More...
|
|
void | set_readonly () |
| Set table as readonly, ie it is neither updatable, insertable nor deletable during this statement. More...
|
|
bool | is_multiple_tables () const |
| Return true if this is a view or derived table that is defined over more than one base table, and false otherwise. More...
|
|
uint | leaf_tables_count () const |
| Return no. of base tables a merged view or derived table is defined over. More...
|
|
Table_ref * | first_leaf_table () |
| Return first leaf table of a base table or a view/derived table. More...
|
|
Table_ref * | any_outer_leaf_table () |
| Return any leaf table that is not an inner table of an outer join. More...
|
|
void | set_view_query (LEX *lex) |
| Set the LEX object of a view (will also define this as a view). More...
|
|
LEX * | view_query () const |
| Return the valid LEX object for a view. More...
|
|
void | set_derived_query_expression (Query_expression *query_expr) |
| Set the query expression of a derived table or view. More...
|
|
Query_expression * | derived_query_expression () const |
| Return the query expression of a derived table or view. More...
|
|
bool | resolve_derived (THD *thd, bool apply_semijoin) |
| Resolve a derived table or view reference. More...
|
|
bool | optimize_derived (THD *thd) |
| Optimize the query expression representing a derived table/view. More...
|
|
bool | create_materialized_table (THD *thd) |
| Create result table for a materialized derived table/view. More...
|
|
bool | materialize_derived (THD *thd) |
| Materialize derived table. More...
|
|
bool | can_push_condition_to_derived (THD *thd) |
| Check if we can push outer where condition to this derived table. More...
|
|
uint | get_hidden_field_count_for_derived () const |
| Return the number of hidden fields added for the temporary table created for this derived table. More...
|
|
bool | prepare_security (THD *thd) |
| Prepare security context for a view. More...
|
|
Security_context * | find_view_security_context (THD *thd) |
| Find security context of current view. More...
|
|
bool | prepare_view_security_context (THD *thd) |
| Load security context information for this view. More...
|
|
bool | process_index_hints (const THD *thd, TABLE *table) |
| Compiles the tagged hints list and fills up TABLE::keys_in_use_for_query, TABLE::keys_in_use_for_group_by, TABLE::keys_in_use_for_order_by, TABLE::force_index and TABLE::covering_keys. More...
|
|
bool | is_table_ref_id_equal (TABLE_SHARE *s) const |
| Compare the version of metadata from the previous execution (if any) with values obtained from the current table definition cache element. More...
|
|
void | set_table_ref_id (TABLE_SHARE *s) |
| Record the value of metadata version of the corresponding table definition cache element in this parse tree node. More...
|
|
void | set_table_ref_id (enum_table_ref_type table_ref_type_arg, ulonglong table_ref_version_arg) |
|
uint | query_block_id () const |
| If a derived table, returns query block id of first underlying query block. More...
|
|
uint | query_block_id_for_explain () const |
| This is for showing in EXPLAIN. More...
|
|
const char * | get_db_name () const |
| Returns the name of the database that the referenced table belongs to. More...
|
|
const char * | get_table_name () const |
| Returns the name of the table that this Table_ref represents. More...
|
|
int | fetch_number_of_rows (ha_rows fallback_estimate=PLACEHOLDER_TABLE_ROW_ESTIMATE) |
| Retrieve number of rows in the table. More...
|
|
bool | update_derived_keys (THD *, Field *, Item **, uint, bool *) |
| Update derived table's list of possible keys. More...
|
|
bool | generate_keys (THD *thd) |
| Generate keys for a materialized derived table/view. More...
|
|
bool | setup_materialized_derived (THD *thd) |
| Setup a derived table to use materialization. More...
|
|
bool | setup_materialized_derived_tmp_table (THD *thd) |
| Sets up the tmp table to contain the derived table's rows. More...
|
|
bool | setup_table_function (THD *thd) |
| Setup a table function to use materialization. More...
|
|
bool | create_field_translation (THD *thd) |
| Create field translation for merged derived table/view. More...
|
|
Table_ref * | outer_join_nest () const |
| Returns the outer join nest that this Table_ref belongs to, if any. More...
|
|
bool | is_inner_table_of_outer_join () const |
| Return true if this table is an inner table of some outer join. More...
|
|
const Table_ref * | updatable_base_table () const |
| Return the base table entry of an updatable table. More...
|
|
Table_ref * | updatable_base_table () |
|
void | add_join_natural (Table_ref *b) |
| Mark that there is a NATURAL JOIN or JOIN ... USING between two tables. More...
|
|
void | set_privileges (Access_bitmask privilege) |
| Set granted privileges for a table. More...
|
|
bool | save_properties () |
| Save persistent properties from TABLE into Table_ref. More...
|
|
void | restore_properties () |
| Restore persistent properties into TABLE from Table_ref. More...
|
|
void | set_lock (const Lock_descriptor &descriptor) |
|
const Lock_descriptor & | lock_descriptor () const |
|
bool | is_derived_unfinished_materialization () const |
|
void | AddMaterializedPathToCache (THD *thd, AccessPath *materialize_path, const AccessPath *table_path) |
| For a view or derived table: Add materialize_path and table_path to m_materialized_path_cache. More...
|
|
AccessPath * | GetCachedMaterializedPath (const AccessPath *table_path) |
| Search m_materialized_path_cache for a materialization path for 'table_path'. More...
|
|
void | ClearMaterializedPathCache () |
| Empty m_materialized_path_cache. More...
|
|
void | set_tablesample (tablesample_type sampling_type_arg, Item *sampling_percentage_arg) |
|
bool | has_tablesample () const |
|
bool | update_sampling_percentage () |
|
double | get_sampling_percentage () const |
|
bool | validate_tablesample_clause (THD *thd) |
|
tablesample_type | get_sampling_type () const |
|
void | set_tableno (uint tableno) |
| Set table number. More...
|
|
uint | tableno () const |
| Return table number. More...
|
|
table_map | map () const |
| Return table map derived from table number. More...
|
|
Common_table_expr * | common_table_expr () const |
| If non-NULL, the CTE which this table is derived from. More...
|
|
void | set_common_table_expr (Common_table_expr *c) |
|
const Create_col_name_list * | derived_column_names () const |
|
void | set_derived_column_names (const Create_col_name_list *d) |
|