drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzled::JoinTable Class Reference
Collaboration diagram for drizzled::JoinTable:
[legend]

Public Types

enum  { KEEP_ROWID =1 , CALL_POSITION =2 }

Public Member Functions

void cleanup ()
bool is_using_loose_index_scan ()
void readCachedRecord ()
int joinReadConstTable (optimizer::Position *pos)
int joinReadSystem ()

Public Attributes

Table * table
optimizer::KeyUse * keyuse
optimizer::SqlSelect * select
COND * select_cond
optimizer::QuickSelectInterface * quick
Item * pre_idx_push_select_cond
Item ** on_expr_ref
COND_EQUAL * cond_equal
JoinTable * first_inner
bool found
bool not_null_compl
JoinTable * last_inner
JoinTable * first_upper
JoinTable * first_unmatched
const char * info
uint32_t packed_info
Read_record_func read_first_record
Next_select_func next_select
ReadRecord read_record
Read_record_func save_read_first_record
int(* save_read_record )(ReadRecord *)
double worst_seeks
key_map const_keys
key_map checked_keys
key_map needed_reg
key_map keys
ha_rows records
ha_rows found_records
ha_rows read_time
table_map dependent
table_map key_dependent
uint32_t use_quick
uint32_t index
uint32_t status
uint32_t used_fields
uint32_t used_fieldlength
uint32_t used_blobs
enum access_method type
bool cached_eq_ref_table
bool eq_ref_table
bool not_used_in_distinct
bool sorted
ha_rows limit
table_reference_st ref
JoinCache cache
Join * join
JoinTable * insideout_match_tab
unsigned char * insideout_buf
bool found_match
int rowid_keep_flags
std::bitset< 64 > embedding_map

Detailed Description

Definition at line 67 of file join_table.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 213 of file join_table.h.

Constructor & Destructor Documentation

◆ JoinTable()

drizzled::JoinTable::JoinTable ( )
inline

Definition at line 70 of file join_table.h.

Member Function Documentation

◆ is_using_loose_index_scan()

bool drizzled::JoinTable::is_using_loose_index_scan ( )
inline

Definition at line 233 of file join_table.h.

◆ joinReadConstTable()

int drizzled::JoinTable::joinReadConstTable ( optimizer::Position * pos)

Definition at line 33 of file join_table.cc.

◆ joinReadSystem()

int drizzled::JoinTable::joinReadSystem ( )

Definition at line 187 of file join_table.cc.

◆ readCachedRecord()

void drizzled::JoinTable::readCachedRecord ( )

Definition at line 111 of file join_table.cc.

Member Data Documentation

◆ cache

JoinCache drizzled::JoinTable::cache

Definition at line 198 of file join_table.h.

◆ cached_eq_ref_table

bool drizzled::JoinTable::cached_eq_ref_table

Definition at line 186 of file join_table.h.

◆ checked_keys

key_map drizzled::JoinTable::checked_keys

Keys checked in find_best

Definition at line 159 of file join_table.h.

◆ cond_equal

COND_EQUAL* drizzled::JoinTable::cond_equal

multiple equalities for the on expression

Definition at line 131 of file join_table.h.

◆ const_keys

key_map drizzled::JoinTable::const_keys

Keys with constant part

Definition at line 158 of file join_table.h.

◆ dependent

table_map drizzled::JoinTable::dependent

Definition at line 177 of file join_table.h.

◆ embedding_map

std::bitset<64> drizzled::JoinTable::embedding_map

Bitmap of nested joins this table is part of

Definition at line 229 of file join_table.h.

◆ eq_ref_table

bool drizzled::JoinTable::eq_ref_table

Definition at line 187 of file join_table.h.

◆ first_inner

JoinTable* drizzled::JoinTable::first_inner

first inner table for including outerjoin

Definition at line 132 of file join_table.h.

◆ first_unmatched

JoinTable* drizzled::JoinTable::first_unmatched

used for optimization purposes only

Definition at line 137 of file join_table.h.

◆ first_upper

JoinTable* drizzled::JoinTable::first_upper

first inner table for embedding outer join

Definition at line 136 of file join_table.h.

◆ found

bool drizzled::JoinTable::found

true after all matches or null complement

Definition at line 133 of file join_table.h.

◆ found_match

bool drizzled::JoinTable::found_match

Used by InsideOut scan. Just set to true when have found a row.

Definition at line 211 of file join_table.h.

◆ found_records

ha_rows drizzled::JoinTable::found_records

Number of records that will be scanned (yes scanned, not returned) by the best 'independent' access method, i.e. table scan or QUICK_*_SELECT)

Definition at line 169 of file join_table.h.

◆ index

uint32_t drizzled::JoinTable::index

Definition at line 180 of file join_table.h.

◆ info

const char* drizzled::JoinTable::info

Definition at line 140 of file join_table.h.

◆ insideout_buf

unsigned char* drizzled::JoinTable::insideout_buf

Buffer to save index tuple to be able to skip dups

Definition at line 208 of file join_table.h.

◆ insideout_match_tab

JoinTable* drizzled::JoinTable::insideout_match_tab

ptr - this join tab should do an InsideOut scan. Points to the tab for which we'll need to check tab->found_match.

NULL - Not an insideout scan.

Definition at line 207 of file join_table.h.

◆ join

Join* drizzled::JoinTable::join

Definition at line 199 of file join_table.h.

◆ key_dependent

table_map drizzled::JoinTable::key_dependent

Definition at line 178 of file join_table.h.

◆ keys

key_map drizzled::JoinTable::keys

all keys with can be used

Definition at line 161 of file join_table.h.

◆ keyuse

optimizer::KeyUse* drizzled::JoinTable::keyuse

pointer to first used key

Definition at line 118 of file join_table.h.

◆ last_inner

JoinTable* drizzled::JoinTable::last_inner

last table table for embedding outer join

Definition at line 135 of file join_table.h.

◆ limit

ha_rows drizzled::JoinTable::limit

If it's not 0 the number stored this field indicates that the index scan has been chosen to access the table data and we expect to scan this number of rows for the table.

Definition at line 196 of file join_table.h.

◆ needed_reg

key_map drizzled::JoinTable::needed_reg

Definition at line 160 of file join_table.h.

◆ next_select

Next_select_func drizzled::JoinTable::next_select

Definition at line 148 of file join_table.h.

◆ not_null_compl

bool drizzled::JoinTable::not_null_compl

true before null complement is added

Definition at line 134 of file join_table.h.

◆ not_used_in_distinct

bool drizzled::JoinTable::not_used_in_distinct

Definition at line 188 of file join_table.h.

◆ on_expr_ref

Item** drizzled::JoinTable::on_expr_ref

pointer to the associated on expression

Definition at line 130 of file join_table.h.

◆ packed_info

uint32_t drizzled::JoinTable::packed_info

Definition at line 145 of file join_table.h.

◆ pre_idx_push_select_cond

Item* drizzled::JoinTable::pre_idx_push_select_cond

The value of select_cond before we've attempted to do Index Condition Pushdown. We may need to restore everything back if we first choose one index but then reconsider (see test_if_skip_sort_order() for such scenarios). NULL means no index condition pushdown was performed.

Definition at line 129 of file join_table.h.

◆ quick

optimizer::QuickSelectInterface* drizzled::JoinTable::quick

Definition at line 121 of file join_table.h.

◆ read_first_record

Read_record_func drizzled::JoinTable::read_first_record

Definition at line 147 of file join_table.h.

◆ read_record

ReadRecord drizzled::JoinTable::read_record

Definition at line 149 of file join_table.h.

◆ read_time

ha_rows drizzled::JoinTable::read_time

Cost of accessing the table using "ALL" or range/index_merge access method (but not 'index' for some reason), i.e. this matches method which E(records) is in found_records.

Definition at line 175 of file join_table.h.

◆ records

ha_rows drizzled::JoinTable::records

Either #rows in the table or 1 for const table.

Definition at line 164 of file join_table.h.

◆ ref

table_reference_st drizzled::JoinTable::ref

Definition at line 197 of file join_table.h.

◆ rowid_keep_flags

int drizzled::JoinTable::rowid_keep_flags

A set of flags from the above enum

Definition at line 226 of file join_table.h.

◆ save_read_first_record

Read_record_func drizzled::JoinTable::save_read_first_record

to save read_first_record

Definition at line 155 of file join_table.h.

◆ save_read_record

int(* drizzled::JoinTable::save_read_record) (ReadRecord *)

to save read_record.read_record

Definition at line 156 of file join_table.h.

◆ select

optimizer::SqlSelect* drizzled::JoinTable::select

Definition at line 119 of file join_table.h.

◆ select_cond

COND* drizzled::JoinTable::select_cond

Definition at line 120 of file join_table.h.

◆ sorted

bool drizzled::JoinTable::sorted

True if index-based access method must return records in order

Definition at line 190 of file join_table.h.

◆ status

uint32_t drizzled::JoinTable::status

Save status for cache

Definition at line 181 of file join_table.h.

◆ table

Table* drizzled::JoinTable::table

Definition at line 117 of file join_table.h.

◆ type

enum access_method drizzled::JoinTable::type

Access method.

Definition at line 185 of file join_table.h.

◆ use_quick

uint32_t drizzled::JoinTable::use_quick

Definition at line 179 of file join_table.h.

◆ used_blobs

uint32_t drizzled::JoinTable::used_blobs

Number of BLOB fields in join set

Definition at line 184 of file join_table.h.

◆ used_fieldlength

uint32_t drizzled::JoinTable::used_fieldlength

Not sure...

Definition at line 183 of file join_table.h.

◆ used_fields

uint32_t drizzled::JoinTable::used_fields

Number of used fields in join set

Definition at line 182 of file join_table.h.

◆ worst_seeks

double drizzled::JoinTable::worst_seeks

Definition at line 157 of file join_table.h.


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