MySQL 26.7.0
Source Code Documentation
ddl::Row Struct Reference

Physical row context. More...

#include <ddl0impl.h>

Public Member Functions

 Row ()=default
 Constructor. More...
 
 Row (const Row &)=default
 
 ~Row ()=default
 Destructor. More...
 
Rowoperator= (const Row &)=default
 
dberr_t build (ddl::Context &ctx, mem_heap_t *heap) noexcept
 Build a row from a raw record. More...
 
void deep_copy (mem_heap_t *heap) noexcept
 Makes the row indpendent from the original buffers, i.e. More...
 

Public Attributes

row_ext_tm_ext {}
 Externally stored fields. More...
 
ulintm_offsets {}
 Column offsets. More...
 
const rec_tm_rec {}
 Row data. More...
 
const dtuple_tm_ptr {}
 DTuple data, mapped over m_rec. More...
 
dtuple_tm_add_cols {}
 Add column data values. More...
 

Detailed Description

Physical row context.

Constructor & Destructor Documentation

◆ Row() [1/2]

ddl::Row::Row ( )
default

Constructor.

◆ Row() [2/2]

ddl::Row::Row ( const Row )
default

◆ ~Row()

ddl::Row::~Row ( )
default

Destructor.

Member Function Documentation

◆ build()

dberr_t Row< T >::build ( ddl::Context ctx,
mem_heap_t heap 
)
noexcept

Build a row from a raw record.

It makes m_ptr point to data found in m_rec, m_add_cols, ctx.m_add_v, handling ctx.m_fts.m_doc_id and ctx.m_add_autoinc, too.

Parameters
[in,out]ctxDDL context.
[in,out]heapHeap to use for allocation.
Returns
DB_SUCCESS or error code.

◆ deep_copy()

void Row< T >::deep_copy ( mem_heap_t heap)
noexcept

Makes the row indpendent from the original buffers, i.e.

the m_ptr will point to fresh copies allocated from heap, instead of data inside m_rec, or m_add_cols. The caller should first call build(..).

Parameters
[in]heapHeap to use for allocation.

◆ operator=()

Row & ddl::Row::operator= ( const Row )
default

Member Data Documentation

◆ m_add_cols

dtuple_t* ddl::Row::m_add_cols {}

Add column data values.

◆ m_ext

row_ext_t* ddl::Row::m_ext {}

Externally stored fields.

◆ m_offsets

ulint* ddl::Row::m_offsets {}

Column offsets.

◆ m_ptr

const dtuple_t* ddl::Row::m_ptr {}

DTuple data, mapped over m_rec.

◆ m_rec

const rec_t* ddl::Row::m_rec {}

Row data.


The documentation for this struct was generated from the following files: