MySQL 9.0.0
Source Code Documentation
row0ext.ic File Reference

Caching of externally stored column prefixes. More...

#include "btr0types.h"
#include "rem0types.h"

Functions

const byterow_ext_lookup_ith (const row_ext_t *ext, ulint i, ulint *len)
 Looks up a column prefix of an externally stored column. More...
 
const byterow_ext_lookup (const row_ext_t *ext, ulint col, ulint *len)
 Looks up a column prefix of an externally stored column. More...
 

Detailed Description

Caching of externally stored column prefixes.

Created September 2006 Marko Makela

Function Documentation

◆ row_ext_lookup()

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

Looks up a column prefix of an externally stored column.

Parameters
[in]extcolumn prefix cache
[in]colcolumn number in the InnoDB table object, as reported by dict_col_get_no(); NOT relative to the records in the clustered index
[out]lenlength of prefix, in bytes, at most the length determined by DICT_MAX_FIELD_LEN_BY_FORMAT()
Returns
column prefix, or NULL if the column is not stored externally, or pointer to field_ref_zero if the BLOB pointer is unset

◆ row_ext_lookup_ith()

const byte * row_ext_lookup_ith ( const row_ext_t ext,
ulint  i,
ulint len 
)
inline

Looks up a column prefix of an externally stored column.

Parameters
[in,out]extcolumn prefix cache
[in]iindex of ext->ext[]
[out]lenlength of prefix, in bytes, at most the length determined by DICT_MAX_FIELD_LEN_BY_FORMAT()
Returns
column prefix, or NULL if the column is not stored externally, or pointer to field_ref_zero if the BLOB pointer is unset