MySQL 8.4.2
Source Code Documentation
|
This class wraps information about usage of addon fields. More...
#include <sort_param.h>
Public Member Functions | |
Addon_fields (Addon_fields_array arr) | |
Sort_addon_field * | begin () |
Sort_addon_field * | end () |
size_t | num_field_descriptors () const |
uchar * | allocate_addon_buf (uint sz) |
SortFileIterator needs an extra buffer when unpacking. More... | |
uchar * | get_addon_buf () |
uint | get_addon_buf_length () const |
void | set_using_packed_addons (bool val) |
void | set_first_addon_relative_offset (int offset) |
int | first_addon_offset () const |
bool | using_packed_addons () const |
size_t | skip_bytes () const |
How many bytes to skip to get to the actual data; first NULL flags (for tables and addon fields) and then the actual addons. More... | |
Static Public Member Functions | |
static uint | read_addon_length (uchar *p) |
static void | store_addon_length (uchar *p, uint sz) |
Stores the number of bytes used for packed addon fields. More... | |
Static Public Attributes | |
static const uint | size_of_length_field = 4 |
Private Attributes | |
Addon_fields_array | m_field_descriptors |
uchar * | m_addon_buf |
Buffer for unpacking addon fields. More... | |
uint | m_addon_buf_length |
Length of the buffer. More... | |
bool | m_using_packed_addons |
Are we packing the addon fields? More... | |
int | m_first_addon_relative_offset = 0 |
Number of bytes from after skip_bytes() to the beginning of the first addon field. More... | |
This class wraps information about usage of addon fields.
An Addon_fields object is used both during packing of data in the filesort buffer, and later during unpacking in 'Filesort_info::unpack_addon_fields'.
|
inline |
|
inline |
SortFileIterator needs an extra buffer when unpacking.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
How many bytes to skip to get to the actual data; first NULL flags (for tables and addon fields) and then the actual addons.
|
inlinestatic |
Stores the number of bytes used for packed addon fields.
|
inline |
|
private |
Buffer for unpacking addon fields.
|
private |
Length of the buffer.
|
private |
|
private |
Number of bytes from after skip_bytes() to the beginning of the first addon field.
|
private |
Are we packing the addon fields?
|
static |