150 [[nodiscard]]
static dberr_t check(
const char *algorithm,
181 [[nodiscard]]
static bool is_none(
const char *algorithm);
194 byte *dst,
ulint dst_len);
int page
Definition: ctype-mb.cc:1236
dberr_t
Definition: db0err.h:39
std::basic_ostringstream< char, std::char_traits< char >, ut::allocator< char > > ostringstream
Specialization of basic_ostringstream which uses ut::allocator.
Definition: ut0new.h:2871
required uint64 version
Definition: replication_group_member_actions.proto:41
required string type
Definition: replication_group_member_actions.proto:34
Compression algorithm.
Definition: file.h:51
static bool is_valid_page_version(uint8_t version)
Check if the version on page is valid.
Definition: file.cc:99
Type
Algorithm types supported.
Definition: file.h:53
@ NONE
No compression.
Definition: file.h:59
@ ZLIB
Use ZLib.
Definition: file.h:62
@ LZ4
Use LZ4 faster variant, usually lower compression.
Definition: file.h:65
Type m_type
Compression type.
Definition: file.h:197
static constexpr uint8_t FIL_PAGE_VERSION_1
Version of compressed page.
Definition: file.h:128
Compression()
Default constructor.
Definition: file.h:87
static dberr_t check(const char *algorithm, Compression *compression)
Check whether the compression algorithm is supported.
Definition: ha_innodb.cc:2611
static bool is_compressed_page(const byte *page)
Check the page header type field.
Definition: file.cc:90
static void deserialize_header(const byte *page, meta_t *control)
Deserizlise the page header compression meta-data.
Definition: file.cc:106
static constexpr uint8_t FIL_PAGE_VERSION_2
Definition: file.h:129
static dberr_t deserialize(bool dblwr_read, byte *src, byte *dst, ulint dst_len)
Decompress the page data contents.
Definition: file.cc:136
static dberr_t validate(const char *algorithm)
Validate the algorithm string.
Definition: ha_innodb.cc:2631
static bool is_none(const char *algorithm)
Check if the string is "empty" or "none".
Definition: ha_innodb.cc:2597
static bool is_compressed_encrypted_page(const byte *page)
Check the page header type field.
Definition: file.cc:94
std::string to_string() const
Definition: file.h:105
Compression(Type type)
Specific constructor.
Definition: file.h:91
Version control for database, common definitions, and include files.
unsigned long int ulint
Definition: univ.i:406
#define ut_error
Abort execution.
Definition: ut0dbg.h:65