MySQL 9.1.0
Source Code Documentation
Cost_model_se_info Class Reference

Class that keeps all cost constants for a storage engine. More...

#include <opt_costconstants.h>

Public Member Functions

 Cost_model_se_info ()
 Constructor that just initializes the class. More...
 
 ~Cost_model_se_info ()
 Destructor. More...
 

Protected Member Functions

void set_cost_constants (SE_cost_constants *cost_constants, unsigned int storage_class)
 Set the storage constants to be used for a given storage type for this storage engine. More...
 
const SE_cost_constantsget_cost_constants (unsigned int storage_class) const
 Retrieve the cost constants to be used for this storage engine for a specified storage class. More...
 
SE_cost_constantsget_cost_constants (unsigned int storage_class)
 Retrieve the cost constants to be used for this storage engine for a specified storage class. More...
 

Private Member Functions

 Cost_model_se_info (const Cost_model_se_info &)
 
Cost_model_se_infooperator= (const Cost_model_se_info &rhs)
 

Private Attributes

SE_cost_constantsm_se_cost_constants [MAX_STORAGE_CLASSES]
 Array of cost constant sets for this storage engine. More...
 

Friends

class Cost_model_constants
 

Detailed Description

Class that keeps all cost constants for a storage engine.

Since storage engines can use different types of storage devices, each device type can have its own set of cost constants.

Note
In the initial implementation there will only be one set of cost constants per storage engine.

Constructor & Destructor Documentation

◆ Cost_model_se_info() [1/2]

Cost_model_se_info::Cost_model_se_info ( )

Constructor that just initializes the class.

◆ ~Cost_model_se_info()

Cost_model_se_info::~Cost_model_se_info ( )

Destructor.

Deletes the allocated cost constant objects.

◆ Cost_model_se_info() [2/2]

Cost_model_se_info::Cost_model_se_info ( const Cost_model_se_info )
private

Member Function Documentation

◆ get_cost_constants() [1/2]

SE_cost_constants * Cost_model_se_info::get_cost_constants ( unsigned int  storage_class)
inlineprotected

Retrieve the cost constants to be used for this storage engine for a specified storage class.

Parameters
storage_classthe storage class these cost constants should be used for

◆ get_cost_constants() [2/2]

const SE_cost_constants * Cost_model_se_info::get_cost_constants ( unsigned int  storage_class) const
inlineprotected

Retrieve the cost constants to be used for this storage engine for a specified storage class.

Parameters
storage_classthe storage class these cost constants should be used for

◆ operator=()

Cost_model_se_info & Cost_model_se_info::operator= ( const Cost_model_se_info rhs)
private

◆ set_cost_constants()

void Cost_model_se_info::set_cost_constants ( SE_cost_constants cost_constants,
unsigned int  storage_class 
)
inlineprotected

Set the storage constants to be used for a given storage type for this storage engine.

Parameters
cost_constantscost constants for the storage engine
storage_classthe storage class these cost constants should be used for

Friends And Related Function Documentation

◆ Cost_model_constants

friend class Cost_model_constants
friend

Member Data Documentation

◆ m_se_cost_constants

SE_cost_constants* Cost_model_se_info::m_se_cost_constants[MAX_STORAGE_CLASSES]
private

Array of cost constant sets for this storage engine.

There will be one set of cost constants for each device type defined for the storage engine.


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