MySQL 8.4.2
Source Code Documentation
Result_set_capacity Class Reference

This class is used to limit the bytes collected in Result_set. More...

#include <protocol_local_v2.h>

Public Member Functions

void add_bytes (uint64_t amend)
 
bool has_capacity ()
 
void reset ()
 
void set_capacity (uint64_t cap)
 
uint64_t get_capacity ()
 

Private Attributes

uint64_t m_configured_capacity {MAX_CAPACITY}
 
uint64_t m_current_capacity {0}
 

Static Private Attributes

static constexpr auto MAX_CAPACITY {500}
 

Detailed Description

This class is used to limit the bytes collected in Result_set.

this is required to avoid exhausting MEM_ROOT, when fetch large set of rows.

Member Function Documentation

◆ add_bytes()

void Result_set_capacity::add_bytes ( uint64_t  amend)
inline

◆ get_capacity()

uint64_t Result_set_capacity::get_capacity ( )
inline

◆ has_capacity()

bool Result_set_capacity::has_capacity ( )
inline

◆ reset()

void Result_set_capacity::reset ( void  )
inline

◆ set_capacity()

void Result_set_capacity::set_capacity ( uint64_t  cap)
inline

Member Data Documentation

◆ m_configured_capacity

uint64_t Result_set_capacity::m_configured_capacity {MAX_CAPACITY}
private

◆ m_current_capacity

uint64_t Result_set_capacity::m_current_capacity {0}
private

◆ MAX_CAPACITY

constexpr auto Result_set_capacity::MAX_CAPACITY {500}
staticconstexprprivate

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