MySQL 8.0.39
Source Code Documentation
|
Page size descriptor. More...
#include <page0size.h>
Public Member Functions | |
page_size_t (uint32_t physical, uint32_t logical, bool is_compressed) | |
Constructor from (physical, logical, is_compressed). More... | |
page_size_t (uint32_t fsp_flags) | |
Constructor from (fsp_flags). More... | |
size_t | physical () const |
Retrieve the physical page size (on-disk). More... | |
size_t | logical () const |
Retrieve the logical page size (in-memory). More... | |
page_no_t | extent_size () const |
size_t | extents_per_xdes () const |
bool | is_compressed () const |
Check whether the page is compressed on disk. More... | |
void | copy_from (const page_size_t &src) |
Copy the values from a given page_size_t object. More... | |
bool | equals_to (const page_size_t &a) const |
Check if a given page_size_t object is equal to the current one. More... | |
void | set_flag (uint32_t fsp_flags) |
page_size_t & | operator= (const page_size_t &)=default |
page_size_t (const page_size_t &)=default | |
Private Attributes | |
unsigned | m_physical: PAGE_SIZE_T_SIZE_BITS |
Physical page size. More... | |
unsigned | m_logical: PAGE_SIZE_T_SIZE_BITS |
Logical page size. More... | |
unsigned | m_is_compressed: 1 |
Flag designating whether the physical page is compressed, which is true IFF the whole tablespace where the page belongs is compressed. More... | |
Page size descriptor.
Contains the physical and logical page size, as well as whether the page is compressed or not.
|
inline |
Constructor from (physical, logical, is_compressed).
[in] | physical | physical (on-disk/zipped) page size |
[in] | logical | logical (in-memory/unzipped) page size |
[in] | is_compressed | whether the page is compressed |
|
inlineexplicit |
Constructor from (fsp_flags).
[in] | fsp_flags | filespace flags |
|
default |
|
inline |
Copy the values from a given page_size_t object.
[in] | src | page size object whose values to fetch |
|
inline |
Check if a given page_size_t object is equal to the current one.
[in] | a | page_size_t object to compare |
|
inline |
|
inline |
|
inline |
Check whether the page is compressed on disk.
|
inline |
Retrieve the logical page size (in-memory).
|
default |
|
inline |
Retrieve the physical page size (on-disk).
|
inline |
|
private |
Flag designating whether the physical page is compressed, which is true IFF the whole tablespace where the page belongs is compressed.
|
private |
Logical page size.
|
private |
Physical page size.