MySQL 9.1.0
Source Code Documentation
|
Structure for an SQL data tuple of fields (logical record) More...
#include <data0data.h>
Public Member Functions | |
UT_LIST_NODE_T (dtuple_t) tuple_list | |
Data tuples can be linked into a list using this field. More... | |
std::ostream & | print (std::ostream &out) const |
Print the tuple to the output stream. More... | |
trx_id_t | get_trx_id () const |
Read the trx id from the tuple (DB_TRX_ID) More... | |
void | ignore_trailing_default (const dict_index_t *index) |
Ignore at most n trailing default fields if this is a tuple from instant index. More... | |
int | compare (const rec_t *rec, const dict_index_t *index, const ulint *offsets, ulint *matched_fields) const |
Compare a data tuple to a physical record. More... | |
int | compare (const rec_t *rec, const dict_index_t *index, const ulint *offsets) const |
Compare a data tuple to a physical record. More... | |
size_t | get_n_ext () const |
Get number of externally stored fields. More... | |
void | set_min_rec_flag () |
Set the flag REC_INFO_MIN_REC_FLAG in the info bits. More... | |
void | unset_min_rec_flag () |
Unset the flag REC_INFO_MIN_REC_FLAG in the info bits. More... | |
bool | has_ext () const |
Does tuple has externally stored fields. More... | |
dtuple_t * | deep_copy (mem_heap_t *heap) const |
Public Attributes | |
uint16_t | info_bits |
info bits of an index record: the default is 0; this field is used if an index record is built from a data tuple More... | |
uint16_t | n_fields |
Number of fields in dtuple. More... | |
uint16_t | n_fields_cmp |
number of fields which should be used in comparison services of rem0cmp. More... | |
dfield_t * | fields |
Fields. More... | |
uint16_t | n_v_fields |
Number of virtual fields. More... | |
dfield_t * | v_fields |
Fields on virtual column. More... | |
mem_heap_t * | m_heap {} |
Memory heap where this tuple is allocated. More... | |
size_t | magic_n {MAGIC_N} |
Magic number, used in debug assertions. More... | |
Static Public Attributes | |
static constexpr size_t | MAGIC_N = 614679 |
Value of dtuple_t::magic_n. More... | |
Structure for an SQL data tuple of fields (logical record)
|
inline |
Compare a data tuple to a physical record.
[in] | rec | record |
[in] | index | index |
[in] | offsets | rec_get_offsets(rec) |
0 | if dtuple is equal to rec |
negative | if dtuple is less than rec |
positive | if dtuple is greater than rec |
int dtuple_t::compare | ( | const rec_t * | rec, |
const dict_index_t * | index, | ||
const ulint * | offsets, | ||
ulint * | matched_fields | ||
) | const |
Compare a data tuple to a physical record.
[in] | rec | record |
[in] | index | index |
[in] | offsets | rec_get_offsets(rec) |
[in,out] | matched_fields | number of completely matched fields |
0 | if dtuple is equal to rec |
negative | if dtuple is less than rec |
positive | if dtuple is greater than rec |
dtuple_t * dtuple_t::deep_copy | ( | mem_heap_t * | heap | ) | const |
|
inline |
Get number of externally stored fields.
number | of externally stored fields. |
trx_id_t dtuple_t::get_trx_id | ( | ) | const |
Read the trx id from the tuple (DB_TRX_ID)
|
inline |
Does tuple has externally stored fields.
true | if there is externally stored fields. |
void dtuple_t::ignore_trailing_default | ( | const dict_index_t * | index | ) |
Ignore at most n trailing default fields if this is a tuple from instant index.
[in] | index | clustered index object for this tuple |
|
inline |
Print the tuple to the output stream.
[in,out] | out | Stream to output to. |
void dtuple_t::set_min_rec_flag | ( | ) |
Set the flag REC_INFO_MIN_REC_FLAG in the info bits.
void dtuple_t::unset_min_rec_flag | ( | ) |
Unset the flag REC_INFO_MIN_REC_FLAG in the info bits.
dtuple_t::UT_LIST_NODE_T | ( | dtuple_t | ) |
Data tuples can be linked into a list using this field.
dfield_t* dtuple_t::fields |
Fields.
uint16_t dtuple_t::info_bits |
info bits of an index record: the default is 0; this field is used if an index record is built from a data tuple
mem_heap_t* dtuple_t::m_heap {} |
Memory heap where this tuple is allocated.
|
staticconstexpr |
Value of dtuple_t::magic_n.
size_t dtuple_t::magic_n {MAGIC_N} |
Magic number, used in debug assertions.
uint16_t dtuple_t::n_fields |
Number of fields in dtuple.
uint16_t dtuple_t::n_fields_cmp |
number of fields which should be used in comparison services of rem0cmp.
*; the index search is performed by comparing only these fields, others are ignored; the default value in dtuple creation is the same value as n_fields
uint16_t dtuple_t::n_v_fields |
Number of virtual fields.
dfield_t* dtuple_t::v_fields |
Fields on virtual column.