![]() |
mutable
A Database System for Research and Fast Prototyping
|
#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< CostFunction > | get_cost_function () |
Generates a CostFunction containing CostModels for cost estimation. | |
Definition at line 18 of file CostModel.hpp.
|
static |
Generates a cost model for the filter operator.
T | the type the filter has to process |
Definition at line 487 of file CostModel.cpp.
References m::LinearModel::get_coefficients(), M_insist, and save_csv().
|
static |
Generates a cost model for the group by operator.
T | the type the group by has to process |
Definition at line 536 of file CostModel.cpp.
References m::LinearModel::get_coefficients(), and save_csv().
|
static |
Generates a cost model for the join operator.
T | the type the join has to process |
Definition at line 562 of file CostModel.cpp.
References m::LinearModel::get_coefficients(), and save_csv().
|
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().
|
inlinestatic |
Definition at line 42 of file CostModel.hpp.
References M_unreachable.