MySQL 9.1.0
Source Code Documentation
dfield_t Struct Reference

Structure for an SQL data field. More...

#include <data0data.h>

Public Member Functions

bool is_ext () const
 
bool is_virtual () const
 
void reset ()
 
dfield_tclone (mem_heap_t *heap)
 Create a deep copy of this object. More...
 
byteblobref () const
 
uint32_t lob_version () const
 Obtain the LOB version number, if this is an externally stored field. More...
 
 dfield_t ()
 
std::ostream & print (std::ostream &out) const
 Print the dfield_t object into the given output stream. More...
 
void adjust_v_data_mysql (const dict_v_col_t *vcol, bool comp, const byte *field, ulint len, mem_heap_t *heap)
 Adjust and(or) set virtual column value which is read from undo or online DDL log. More...
 

Public Attributes

void * data
 pointer to data More...
 
bool ext
 true=externally stored, false=local More...
 
unsigned spatial_status: 2
 spatial status of externally stored field in undo log for purge More...
 
unsigned len
 data length; UNIV_SQL_NULL if SQL null More...
 
dtype_t type
 type of data More...
 

Detailed Description

Structure for an SQL data field.

Constructor & Destructor Documentation

◆ dfield_t()

dfield_t::dfield_t ( )
inline

Member Function Documentation

◆ adjust_v_data_mysql()

void dfield_t::adjust_v_data_mysql ( const dict_v_col_t vcol,
bool  comp,
const byte field,
ulint  len,
mem_heap_t heap 
)

Adjust and(or) set virtual column value which is read from undo or online DDL log.

Parameters
[in]vcolvirtual column definition
[in]comptrue if compact format
[in]fieldvirtual column value
[in]lenvalue length
[in,out]heapmemory heap to keep value when necessary

◆ blobref()

byte * dfield_t::blobref ( ) const

◆ clone()

dfield_t * dfield_t::clone ( mem_heap_t heap)

Create a deep copy of this object.

Parameters
[in]heapthe memory heap in which the clone will be created.
Returns
the cloned object.

◆ is_ext()

bool dfield_t::is_ext ( ) const
inline

◆ is_virtual()

bool dfield_t::is_virtual ( ) const
inline

◆ lob_version()

uint32_t dfield_t::lob_version ( ) const

Obtain the LOB version number, if this is an externally stored field.

◆ print()

std::ostream & dfield_t::print ( std::ostream &  out) const

Print the dfield_t object into the given output stream.

Parameters
[in]outthe output stream.
Returns
the output stream.

◆ reset()

void dfield_t::reset ( void  )
inline

Member Data Documentation

◆ data

void* dfield_t::data

pointer to data

◆ ext

bool dfield_t::ext

true=externally stored, false=local

◆ len

unsigned dfield_t::len

data length; UNIV_SQL_NULL if SQL null

◆ spatial_status

unsigned dfield_t::spatial_status

spatial status of externally stored field in undo log for purge

◆ type

dtype_t dfield_t::type

type of data


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