mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Static Public Member Functions
m::CostModelFactory Struct Reference

#include <CostModel.hpp>

Static Public Member Functions

template<typename T >
static CostModel generate_filter_cost_model (unsigned degree, const char *csv_folder_path=nullptr)
 Generates a cost model for the filter operator.
 
template<typename T >
static CostModel generate_group_by_cost_model (const char *csv_folder_path=nullptr)
 Generates a cost model for the group by operator.
 
template<typename T >
static CostModel generate_join_cost_model (const char *csv_folder_path=nullptr)
 Generates a cost model for the join operator.
 
template<typename T >
static CostModel get_cost_model (OperatorKind op, const char *csv_folder_path=nullptr, unsigned degree=9)
 
static std::unique_ptr< CostFunctionget_cost_function ()
 Generates a CostFunction containing CostModels for cost estimation.
 

Detailed Description

Definition at line 18 of file CostModel.hpp.

Member Function Documentation

◆ generate_filter_cost_model()

template<typename T >
CostModel CostModelFactory::generate_filter_cost_model ( unsigned  degree,
const char *  csv_folder_path = nullptr 
)
static

Generates a cost model for the filter operator.

Template Parameters
Tthe type the filter has to process

Definition at line 487 of file CostModel.cpp.

References m::LinearModel::get_coefficients(), M_insist, and save_csv().

◆ generate_group_by_cost_model()

template<typename T >
CostModel CostModelFactory::generate_group_by_cost_model ( const char *  csv_folder_path = nullptr)
static

Generates a cost model for the group by operator.

Template Parameters
Tthe type the group by has to process

Definition at line 536 of file CostModel.cpp.

References m::LinearModel::get_coefficients(), and save_csv().

◆ generate_join_cost_model()

template<typename T >
CostModel CostModelFactory::generate_join_cost_model ( const char *  csv_folder_path = nullptr)
static

Generates a cost model for the join operator.

Template Parameters
Tthe type the join has to process

Definition at line 562 of file CostModel.cpp.

References m::LinearModel::get_coefficients(), and save_csv().

◆ get_cost_function()

std::unique_ptr< CostFunction > CostModelFactory::get_cost_function ( )
static

Generates a CostFunction containing CostModels for cost estimation.

Not every Operator is currently supported. For unsupported Operator the CostFunction returns the cost of the first subproblem, therefore the subproblems vector must not be empty

Definition at line 588 of file CostModel.cpp.

References DEFAULT_FILTER_POLYNOMIAL_DEGREE.

Referenced by main().

◆ get_cost_model()

template<typename T >
static CostModel m::CostModelFactory::get_cost_model ( OperatorKind  op,
const char *  csv_folder_path = nullptr,
unsigned  degree = 9 
)
inlinestatic

Definition at line 42 of file CostModel.hpp.

References M_unreachable.


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