InnoDB Plugin  1.0
Functions
row0ext.ic File Reference
#include "rem0types.h"
#include "btr0types.h"
Include dependency graph for row0ext.ic:
This graph shows which files directly or indirectly include this file:

Functions

UNIV_INLINE const byte * row_ext_lookup_ith (const row_ext_t *ext, ulint i, ulint *len)
UNIV_INLINE const byte * row_ext_lookup (const row_ext_t *ext, ulint col, ulint *len)

Detailed Description

Caching of externally stored column prefixes

Created September 2006 Marko Makela

Function Documentation

UNIV_INLINE const byte* row_ext_lookup ( const row_ext_t ext,
ulint  col,
ulint *  len 
)

Looks up a column prefix of an externally stored column.

Returns
column prefix, or NULL if the column is not stored externally, or pointer to field_ref_zero if the BLOB pointer is unset
Parameters
extin: column prefix cache
colin: column number in the InnoDB table object, as reported by dict_col_get_no(); NOT relative to the records in the clustered index
lenout: length of prefix, in bytes, at most ext->max_len
UNIV_INLINE const byte* row_ext_lookup_ith ( const row_ext_t ext,
ulint  i,
ulint *  len 
)

Looks up a column prefix of an externally stored column.

Returns
column prefix, or NULL if the column is not stored externally, or pointer to field_ref_zero if the BLOB pointer is unset
Parameters
extin/out: column prefix cache
iin: index of ext->ext[]
lenout: length of prefix, in bytes, at most ext->max_len