MySQL 8.0.40
Source Code Documentation
row0ext.cc File Reference

Caching of externally stored column prefixes. More...

#include "row0ext.h"
#include "lob0lob.h"
#include "btr0cur.h"

Functions

static void row_ext_cache_fill (const dict_index_t *index, row_ext_t *ext, ulint i, const page_size_t &page_size, bool is_sdi, const dfield_t *dfield)
 Fills the column prefix cache of an externally stored column. More...
 
row_ext_trow_ext_create_func (const dict_index_t *index, ulint n_ext, const ulint *ext, uint32_t flags, const dtuple_t *tuple, bool is_sdi, mem_heap_t *heap)
 Creates a cache of column prefixes of externally stored columns. More...
 

Detailed Description

Caching of externally stored column prefixes.

Created September 2006 Marko Makela

Function Documentation

◆ row_ext_cache_fill()

static void row_ext_cache_fill ( const dict_index_t index,
row_ext_t ext,
ulint  i,
const page_size_t page_size,
bool  is_sdi,
const dfield_t dfield 
)
static

Fills the column prefix cache of an externally stored column.

Parameters
[in]indexclustered index from which LOB is fetched.
[in,out]extcolumn prefix cache
[in]iindex of ext->ext[]
[in]page_sizepage size
[in]dfielddata field
[in]is_sditrue for SDI Index

◆ row_ext_create_func()

row_ext_t * row_ext_create_func ( const dict_index_t index,
ulint  n_ext,
const ulint ext,
uint32_t  flags,
const dtuple_t tuple,
bool  is_sdi,
mem_heap_t heap 
)

Creates a cache of column prefixes of externally stored columns.

Parameters
[in]indexthe index to which LOB belongs.
[in]n_extnumber of externally stored columns
[in]extcol_no's of externally stored columns in the InnoDB table object, as reported by dict_col_get_no(); NOT relative to the records in the clustered index
[in]flagstable->flags
[in]tupledata tuple containing the field references of the externally stored columns; must be indexed by col_no; the clustered index record must be covered by a lock or a page latch to prevent deletion (rollback or purge)
[in]is_sditrue for SDI Indexes
[in,out]heapheap where created
Returns
own: column prefix cache