MySQL 8.0.40
Source Code Documentation
row0row.ic File Reference

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_trow_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...
 

Detailed Description

General row routines.

Created 4/20/1996 Heikki Tuuri

Function Documentation

◆ row_build_index_entry()

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 
)
inlinestatic

◆ row_build_row_ref_fast()

static void row_build_row_ref_fast ( dtuple_t ref,
const ulint map,
const rec_t rec,
const ulint offsets 
)
inlinestatic

Builds from a secondary index record a row reference with which we can search the clustered index record.

Parameters
refin/out: typed data tuple where the reference is built
mapin: array of field numbers in rec telling how ref should be built from the fields of rec
recin: record in the index; must be preserved while ref is used, as we do not copy field values to heap
offsetsin: array returned by rec_get_offsets()

◆ row_get_rec_roll_ptr()

static roll_ptr_t row_get_rec_roll_ptr ( const rec_t rec,
const dict_index_t index,
const ulint offsets 
)
inlinestatic

◆ row_get_rec_trx_id()

static trx_id_t row_get_rec_trx_id ( const rec_t rec,
const dict_index_t index,
const ulint offsets 
)
inlinestatic

◆ row_get_trx_id_offset()

static ulint row_get_trx_id_offset ( const dict_index_t index,
const ulint offsets 
)
inlinestatic

◆ row_parse_int()

uint64_t row_parse_int ( const byte data,
ulint  len,
ulint  mtype,
bool  unsigned_type 
)
inline

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

Parameters
[in]datadata to read
[in]lenlength of data
[in]mtypemtype of data
[in]unsigned_typeif the data is unsigned
Returns
the integer value from the data