MySQL 8.0.39
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
 

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 = binary_log::transaction::compression::Compressor
 
using Grow_calculator_t = mysqlns::buffer::Grow_calculator
 
using Factory_t = binary_log::transaction::compression::Factory
 

Private Attributes

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

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_sequence

Managed_buffer_sequence_t Transaction_compression_ctx::m_managed_buffer_sequence
private

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