MySQL 8.0.29
Source Code Documentation
cmp_item_row Class Reference

#include <item_cmpfunc.h>

Inheritance diagram for cmp_item_row:
[legend]

Public Member Functions

 cmp_item_row ()
 
 cmp_item_row (THD *thd, Item *item)
 
 ~cmp_item_row () override
 
 cmp_item_row (cmp_item_row &&other)
 
void store_value (Item *item) override
 
int cmp (Item *arg) override
 
int compare (const cmp_item *arg) const override
 
cmp_itemmake_same () override
 
void store_value_by_template (cmp_item *tmpl, Item *) override
 
void set_comparator (uint col, cmp_item *comparator)
 
- Public Member Functions inherited from cmp_item
 cmp_item ()=default
 
virtual ~cmp_item ()=default
 

Private Member Functions

bool alloc_comparators (THD *thd, Item *item)
 Allocate comparator objects. More...
 

Private Attributes

cmp_item ** comparators
 
uint n
 

Additional Inherited Members

- Static Public Member Functions inherited from cmp_item
static cmp_itemget_comparator (Item_result result_type, const Item *item, const CHARSET_INFO *cs)
 Find the appropriate comparator for the given type. More...
 

Constructor & Destructor Documentation

◆ cmp_item_row() [1/3]

cmp_item_row::cmp_item_row ( )
inline

◆ cmp_item_row() [2/3]

cmp_item_row::cmp_item_row ( THD thd,
Item item 
)
inline

◆ ~cmp_item_row()

cmp_item_row::~cmp_item_row ( )
override

◆ cmp_item_row() [3/3]

cmp_item_row::cmp_item_row ( cmp_item_row &&  other)
inline

Member Function Documentation

◆ alloc_comparators()

bool cmp_item_row::alloc_comparators ( THD thd,
Item item 
)
private

Allocate comparator objects.

Parameters
thdThread descriptor
itemItem to allocate comparator objects for
Return values
falseon success, true on error (OOM)

◆ cmp()

int cmp_item_row::cmp ( Item item)
overridevirtual
Returns
result (true, false or UNKNOWN) of "stored argument's value <> item's value"

Implements cmp_item.

◆ compare()

int cmp_item_row::compare ( const cmp_item arg) const
overridevirtual

Implements cmp_item.

◆ make_same()

cmp_item * cmp_item_row::make_same ( )
overridevirtual

Implements cmp_item.

◆ set_comparator()

void cmp_item_row::set_comparator ( uint  col,
cmp_item comparator 
)
inline

◆ store_value()

void cmp_item_row::store_value ( Item item)
overridevirtual

Implements cmp_item.

◆ store_value_by_template()

void cmp_item_row::store_value_by_template ( cmp_item tmpl,
Item item 
)
overridevirtual

Reimplemented from cmp_item.

Member Data Documentation

◆ comparators

cmp_item** cmp_item_row::comparators
private

◆ n

uint cmp_item_row::n
private

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