5#include <mutable/mutable-config.hpp>
24 static CostModel generate_filter_cost_model(
unsigned degree,
const char *csv_folder_path =
nullptr);
31 static CostModel generate_group_by_cost_model(
const char *csv_folder_path =
nullptr);
38 static CostModel generate_join_cost_model(
const char *csv_folder_path =
nullptr);
45 case OperatorKind::FilterOperator:
46 return generate_filter_cost_model<T>(degree, csv_folder_path);
47 case OperatorKind::GroupingOperator:
48 return generate_group_by_cost_model<T>(csv_folder_path);
49 case OperatorKind::JoinOperator:
50 return generate_join_cost_model<T>(csv_folder_path);
61 static std::unique_ptr<CostFunction> get_cost_function();
A model for predicting the costs of a physical operator.
#define M_unreachable(MSG)
static CostModel get_cost_model(OperatorKind op, const char *csv_folder_path=nullptr, unsigned degree=9)