MySQL 9.1.0
Source Code Documentation
Transaction_compression_ctx Class Reference

#include <rpl_context.h>

Public Types

using Compressor_ptr_t = std::shared_ptr< Compressor_t >
 
using Managed_buffer_sequence_t = Compressor_t::Managed_buffer_sequence_t
 
using Memory_resource_t = mysql::allocators::Memory_resource
 

Public Member Functions

 Transaction_compression_ctx (PSI_memory_key key)
 
Compressor_ptr_t get_compressor (THD *session)
 Return the compressor. More...
 
Managed_buffer_sequence_tmanaged_buffer_sequence ()
 Return reference to the buffer sequence holding compressed bytes. More...
 

Private Types

using Compressor_t = mysql::binlog::event::compression::Compressor
 
using Grow_calculator_t = mysql::containers::buffers::Grow_calculator
 
using Factory_t = mysql::binlog::event::compression::Factory
 

Private Attributes

Memory_resource_t m_managed_buffer_memory_resource
 
Managed_buffer_sequence_t m_managed_buffer_sequence
 
Compressor_ptr_t m_compressor
 

Member Typedef Documentation

◆ Compressor_ptr_t

◆ Compressor_t

◆ Factory_t

◆ Grow_calculator_t

◆ Managed_buffer_sequence_t

◆ Memory_resource_t

Constructor & Destructor Documentation

◆ Transaction_compression_ctx()

Transaction_compression_ctx::Transaction_compression_ctx ( PSI_memory_key  key)
explicit

Member Function Documentation

◆ get_compressor()

Transaction_compression_ctx::Compressor_ptr_t Transaction_compression_ctx::get_compressor ( THD session)

Return the compressor.

This constructs the compressor on the first invocation and returns the same compressor on subsequent invocations.

◆ managed_buffer_sequence()

Transaction_compression_ctx::Managed_buffer_sequence_t & Transaction_compression_ctx::managed_buffer_sequence ( )

Return reference to the buffer sequence holding compressed bytes.

Member Data Documentation

◆ m_compressor

Compressor_ptr_t Transaction_compression_ctx::m_compressor
private

◆ m_managed_buffer_memory_resource

Memory_resource_t Transaction_compression_ctx::m_managed_buffer_memory_resource
private

◆ m_managed_buffer_sequence

Managed_buffer_sequence_t Transaction_compression_ctx::m_managed_buffer_sequence
private

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