MySQL 8.0.40
Source Code Documentation
|
General row routines. More...
#include <cmath>
#include <cstdint>
#include "dict0dict.h"
#include "rem0rec.h"
#include "trx0undo.h"
Functions | |
static ulint | row_get_trx_id_offset (const dict_index_t *index, const ulint *offsets) |
static trx_id_t | row_get_rec_trx_id (const rec_t *rec, const dict_index_t *index, const ulint *offsets) |
static roll_ptr_t | row_get_rec_roll_ptr (const rec_t *rec, const dict_index_t *index, const ulint *offsets) |
static dtuple_t * | row_build_index_entry (const dtuple_t *row, const row_ext_t *ext, const dict_index_t *index, mem_heap_t *heap) |
static void | row_build_row_ref_fast (dtuple_t *ref, const ulint *map, const rec_t *rec, const ulint *offsets) |
Builds from a secondary index record a row reference with which we can search the clustered index record. More... | |
uint64_t | row_parse_int (const byte *data, ulint len, ulint mtype, bool unsigned_type) |
Parse the integer data from specified data, which could be DATA_INT, DATA_FLOAT or DATA_DOUBLE. More... | |
General row routines.
Created 4/20/1996 Heikki Tuuri
|
inlinestatic |
|
inlinestatic |
Builds from a secondary index record a row reference with which we can search the clustered index record.
ref | in/out: typed data tuple where the reference is built |
map | in: array of field numbers in rec telling how ref should be built from the fields of rec |
rec | in: record in the index; must be preserved while ref is used, as we do not copy field values to heap |
offsets | in: array returned by rec_get_offsets() |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Parse the integer data from specified data, which could be DATA_INT, DATA_FLOAT or DATA_DOUBLE.
If the value is less than 0 and the type is not unsigned then we reset the value to 0
[in] | data | data to read |
[in] | len | length of data |
[in] | mtype | mtype of data |
[in] | unsigned_type | if the data is unsigned |