InnoDB Plugin
1.0
|
Functions | |
UNIV_INLINE ulint | row_get_trx_id_offset (const dict_index_t *index, const ulint *offsets) |
UNIV_INLINE trx_id_t | row_get_rec_trx_id (const rec_t *rec, const dict_index_t *index, const ulint *offsets) |
UNIV_INLINE roll_ptr_t | row_get_rec_roll_ptr (const rec_t *rec, const dict_index_t *index, const ulint *offsets) |
UNIV_INLINE dtuple_t * | row_build_index_entry (const dtuple_t *row, const row_ext_t *ext, dict_index_t *index, mem_heap_t *heap) |
UNIV_INLINE void | row_build_row_ref_fast (dtuple_t *ref, const ulint *map, const rec_t *rec, const ulint *offsets) |
General row routines
Created 4/20/1996 Heikki Tuuri
UNIV_INLINE dtuple_t* row_build_index_entry | ( | const dtuple_t * | row, |
const row_ext_t * | ext, | ||
dict_index_t * | index, | ||
mem_heap_t * | heap | ||
) |
When an insert or purge to a table is performed, this function builds the entry to be inserted into or purged from an index on the table.
row | in: row which should be inserted or purged |
ext | in: externally stored column prefixes, or NULL |
index | in: index on the table |
heap | in: memory heap from which the memory for the index entry is allocated |
UNIV_INLINE 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.
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() |
UNIV_INLINE roll_ptr_t row_get_rec_roll_ptr | ( | const rec_t * | rec, |
const dict_index_t * | index, | ||
const ulint * | offsets | ||
) |
Reads the roll pointer field from a clustered index record.
rec | in: record |
index | in: clustered index |
offsets | in: rec_get_offsets(rec, index) |
UNIV_INLINE trx_id_t row_get_rec_trx_id | ( | const rec_t * | rec, |
const dict_index_t * | index, | ||
const ulint * | offsets | ||
) |
Reads the trx id field from a clustered index record.
rec | in: record |
index | in: clustered index |
offsets | in: rec_get_offsets(rec, index) |
UNIV_INLINE ulint row_get_trx_id_offset | ( | const dict_index_t * | index, |
const ulint * | offsets | ||
) |
Gets the offset of the DB_TRX_ID field, in bytes relative to the origin of a clustered index record.
index | in: clustered index |
offsets | in: record offsets |