|
drizzle
C++ MySQL-protocol-compatible database server
|
#include <subselect.h>
Protected Attributes | |
| bool | is_materialized |
| subselect_single_select_engine * | materialize_engine |
| Join * | materialize_join |
| Tmp_Table_Param * | tmp_param |
| Protected Attributes inherited from drizzled::subselect_uniquesubquery_engine | |
| JoinTable * | tab |
| Item * | cond |
| bool | empty_result_set |
| bool | null_keypart |
| Protected Attributes inherited from drizzled::subselect_engine | |
| select_result_interceptor * | result |
| Session * | session |
| Item_subselect * | item |
| enum Item_result | res_type |
| enum_field_types | res_field_type |
| bool | maybe_null |
Additional Inherited Members | |
| Public Types inherited from drizzled::subselect_engine | |
| enum | enum_engine_type { ABSTRACT_ENGINE , SINGLE_SELECT_ENGINE , UNION_ENGINE , UNIQUESUBQUERY_ENGINE , INDEXSUBQUERY_ENGINE , HASH_SJ_ENGINE } |
| Static Public Member Functions inherited from drizzled::subselect_engine | |
| static table_map | calc_const_tables (TableList *) |
| Static Public Member Functions inherited from drizzled::memory::SqlAlloc | |
| static void * | operator new (size_t size) |
| static void * | operator new[] (size_t size) |
| static void * | operator new (size_t size, Root &root) |
| static void * | operator new[] (size_t size, Root &root) |
| static void * | operator new (size_t size, Root *root) |
| static void * | operator new[] (size_t size, Root *root) |
| static void | operator delete (void *) |
| static void | operator delete[] (void *) |
| static void | operator delete (void *, Root &) |
| static void | operator delete[] (void *, Root &) |
| static void | operator delete (void *, Root *) |
| static void | operator delete[] (void *, Root *) |
| Protected Member Functions inherited from drizzled::subselect_engine | |
| void | set_row (List< Item > &item_list, Item_cache **row) |
Compute an IN predicate via a hash semi-join. The subquery is materialized during the first evaluation of the IN predicate. The IN predicate is executed via the functionality inherited from subselect_uniquesubquery_engine.
Definition at line 649 of file subselect.h.
|
inline |
Definition at line 670 of file subselect.h.
| drizzled::subselect_hash_sj_engine::~subselect_hash_sj_engine | ( | ) |
Definition at line 3079 of file subselect.cc.
|
virtual |
Cleanup performed after each PS execution.
@detail Called in the end of Join::prepare for PS from Item_subselect::cleanup.
Implements drizzled::subselect_engine.
Definition at line 3096 of file subselect.cc.
|
inlinevirtual |
Implements drizzled::subselect_engine.
Definition at line 684 of file subselect.h.
|
inlinevirtual |
Reimplemented from drizzled::subselect_uniquesubquery_engine.
Definition at line 688 of file subselect.h.
|
virtual |
Execute a subquery IN predicate via materialization.
@detail If needed materialize the subquery into a temporary table, then copmpute the predicate via a lookup into this table.
| true | if error |
| false | otherwise |
Implements drizzled::subselect_engine.
Definition at line 3116 of file subselect.cc.
Create all structures needed for IN execution that can live between PS reexecution.
@detail
@notice: Currently Item_subselect::init() already chooses and creates at parse time an engine with a corresponding JOIN to execute the subquery.
| true | if error |
| false | otherwise |
Definition at line 2958 of file subselect.cc.
| void drizzled::subselect_hash_sj_engine::init_runtime | ( | ) |
Initialize members of the engine that need to be re-initilized at each execution.
| true | if a memory allocation error occurred |
| false | if success |
Definition at line 3066 of file subselect.cc.
|
inlinevirtual |
Implements drizzled::subselect_engine.
Definition at line 681 of file subselect.h.
|
virtual |
Print the state of this engine into a string for debugging and views.
Reimplemented from drizzled::subselect_uniquesubquery_engine.
Definition at line 3184 of file subselect.cc.
|
protected |
Definition at line 653 of file subselect.h.
|
protected |
Definition at line 660 of file subselect.h.
|
protected |
Definition at line 665 of file subselect.h.
|
protected |
Definition at line 667 of file subselect.h.