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

Public Member Functions

 KeyUse (Table *in_table, Item *in_val, table_map in_used_tables, uint32_t in_key, uint32_t in_keypart, uint32_t in_optimize, key_part_map in_keypart_map, ha_rows in_ref_table_rows, bool in_null_rejecting, bool *in_cond_guard)
Table * getTable ()
Item * getVal ()
table_map getUsedTables () const
uint32_t getKey () const
uint32_t getKeypart () const
uint32_t getOptimizeFlags () const
key_part_map getKeypartMap () const
ha_rows getTableRows () const
void setTableRows (ha_rows input)
bool isNullRejected () const
bool * getConditionalGuard ()

Private Attributes

Table * table
Item * val
table_map used_tables
uint32_t key
uint32_t keypart
uint32_t optimize
key_part_map keypart_map
ha_rows ref_table_rows
bool null_rejecting
bool * cond_guard

Detailed Description

Definition at line 27 of file key_use.h.

Constructor & Destructor Documentation

◆ KeyUse() [1/2]

drizzled::optimizer::KeyUse::KeyUse ( )
inline

Definition at line 31 of file key_use.h.

◆ KeyUse() [2/2]

drizzled::optimizer::KeyUse::KeyUse ( Table * in_table,
Item * in_val,
table_map in_used_tables,
uint32_t in_key,
uint32_t in_keypart,
uint32_t in_optimize,
key_part_map in_keypart_map,
ha_rows in_ref_table_rows,
bool in_null_rejecting,
bool * in_cond_guard )
inline

Definition at line 45 of file key_use.h.

Member Function Documentation

◆ getConditionalGuard()

bool * drizzled::optimizer::KeyUse::getConditionalGuard ( )
inline

Definition at line 118 of file key_use.h.

◆ getKey()

uint32_t drizzled::optimizer::KeyUse::getKey ( ) const
inline

Definition at line 83 of file key_use.h.

◆ getKeypart()

uint32_t drizzled::optimizer::KeyUse::getKeypart ( ) const
inline

Definition at line 88 of file key_use.h.

◆ getKeypartMap()

key_part_map drizzled::optimizer::KeyUse::getKeypartMap ( ) const
inline

Definition at line 98 of file key_use.h.

◆ getOptimizeFlags()

uint32_t drizzled::optimizer::KeyUse::getOptimizeFlags ( ) const
inline

Definition at line 93 of file key_use.h.

◆ getTable()

Table * drizzled::optimizer::KeyUse::getTable ( )
inline

Definition at line 68 of file key_use.h.

◆ getTableRows()

ha_rows drizzled::optimizer::KeyUse::getTableRows ( ) const
inline

Definition at line 103 of file key_use.h.

◆ getUsedTables()

table_map drizzled::optimizer::KeyUse::getUsedTables ( ) const
inline

Definition at line 78 of file key_use.h.

◆ getVal()

Item * drizzled::optimizer::KeyUse::getVal ( )
inline

Definition at line 73 of file key_use.h.

◆ isNullRejected()

bool drizzled::optimizer::KeyUse::isNullRejected ( ) const
inline

Definition at line 113 of file key_use.h.

◆ setTableRows()

void drizzled::optimizer::KeyUse::setTableRows ( ha_rows input)
inline

Definition at line 108 of file key_use.h.

Member Data Documentation

◆ cond_guard

bool* drizzled::optimizer::KeyUse::cond_guard
private

!NULL - This KeyUse was created from an equality that was wrapped into an Item_func_trig_cond. This means the equality (and validity of this KeyUse element) can be turned on and off. The on/off state is indicted by the pointed value: *cond_guard == true <=> equality condition is on *cond_guard == false <=> equality condition is off

NULL - Otherwise (the source equality can't be turned off)

Definition at line 157 of file key_use.h.

◆ key

uint32_t drizzled::optimizer::KeyUse::key
private

Definition at line 131 of file key_use.h.

◆ keypart

uint32_t drizzled::optimizer::KeyUse::keypart
private

Definition at line 133 of file key_use.h.

◆ keypart_map

key_part_map drizzled::optimizer::KeyUse::keypart_map
private

Definition at line 137 of file key_use.h.

◆ null_rejecting

bool drizzled::optimizer::KeyUse::null_rejecting
private

If true, the comparison this value was created from will not be satisfied if val has NULL 'value'.

Definition at line 145 of file key_use.h.

◆ optimize

uint32_t drizzled::optimizer::KeyUse::optimize
private

0, or KEY_OPTIMIZE_*

Definition at line 135 of file key_use.h.

◆ ref_table_rows

ha_rows drizzled::optimizer::KeyUse::ref_table_rows
private

Definition at line 139 of file key_use.h.

◆ table

Table* drizzled::optimizer::KeyUse::table
private

Pointer to the table this key belongs to

Definition at line 125 of file key_use.h.

◆ used_tables

table_map drizzled::optimizer::KeyUse::used_tables
private

Definition at line 129 of file key_use.h.

◆ val

Item* drizzled::optimizer::KeyUse::val
private

or value if no field

Definition at line 127 of file key_use.h.


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