149 [[nodiscard]]
static dberr_t check(
const char *algorithm,
180 [[nodiscard]]
static bool is_none(
const char *algorithm);
193 byte *dst,
ulint dst_len);
int page
Definition: ctype-mb.cc:1233
dberr_t
Definition: db0err.h:38
std::basic_ostringstream< char, std::char_traits< char >, ut::allocator< char > > ostringstream
Specialization of basic_ostringstream which uses ut::allocator.
Definition: ut0new.h:2869
required uint64 version
Definition: replication_group_member_actions.proto:40
required string type
Definition: replication_group_member_actions.proto:33
Compression algorithm.
Definition: file.h:50
static bool is_valid_page_version(uint8_t version)
Check if the version on page is valid.
Definition: file.cc:98
Type
Algorithm types supported.
Definition: file.h:52
@ NONE
No compression.
Definition: file.h:58
@ ZLIB
Use ZLib.
Definition: file.h:61
@ LZ4
Use LZ4 faster variant, usually lower compression.
Definition: file.h:64
Type m_type
Compression type.
Definition: file.h:196
static constexpr uint8_t FIL_PAGE_VERSION_1
Version of compressed page.
Definition: file.h:127
Compression()
Default constructor.
Definition: file.h:86
static dberr_t check(const char *algorithm, Compression *compression)
Check whether the compression algorithm is supported.
Definition: ha_innodb.cc:2617
static bool is_compressed_page(const byte *page)
Check the page header type field.
Definition: file.cc:89
static void deserialize_header(const byte *page, meta_t *control)
Deserizlise the page header compression meta-data.
Definition: file.cc:105
static constexpr uint8_t FIL_PAGE_VERSION_2
Definition: file.h:128
static dberr_t deserialize(bool dblwr_read, byte *src, byte *dst, ulint dst_len)
Decompress the page data contents.
Definition: file.cc:135
static dberr_t validate(const char *algorithm)
Validate the algorithm string.
Definition: ha_innodb.cc:2637
static bool is_none(const char *algorithm)
Check if the string is "empty" or "none".
Definition: ha_innodb.cc:2603
static bool is_compressed_encrypted_page(const byte *page)
Check the page header type field.
Definition: file.cc:93
std::string to_string() const
Definition: file.h:104
Compression(Type type)
Specific constructor.
Definition: file.h:90
Version control for database, common definitions, and include files.
unsigned long int ulint
Definition: univ.i:405
#define ut_error
Abort execution.
Definition: ut0dbg.h:64