InnoDB Plugin  1.0
Functions
row0row.ic File Reference
#include "dict0dict.h"
#include "rem0rec.h"
#include "trx0undo.h"
Include dependency graph for row0row.ic:
This graph shows which files directly or indirectly include this file:

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

Detailed Description

General row routines

Created 4/20/1996 Heikki Tuuri

Function Documentation

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.

Returns
index entry which should be inserted or purged, or NULL if the externally stored columns in the clustered index record are unavailable and ext != NULL
Parameters
rowin: row which should be inserted or purged
extin: externally stored column prefixes, or NULL
indexin: index on the table
heapin: 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.

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()
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.

Returns
value of the field
Parameters
recin: record
indexin: clustered index
offsetsin: 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.

Returns
value of the field
Parameters
recin: record
indexin: clustered index
offsetsin: 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.

Returns
offset of DATA_TRX_ID
Parameters
indexin: clustered index
offsetsin: record offsets