Turi Create
4.0
|
#include <core/storage/query_engine/planning/optimization_engine.hpp>
Public Member Functions | |
void | set_num_stages (size_t n) |
void | register_optimization (const std::vector< size_t > &valid_stages, std::shared_ptr< opt_transform > opt) |
size_t | num_stages () const |
const std::vector< std::shared_ptr< opt_transform > > & | get_transforms (size_t stage, planner_node_type t) const |
A registry of the different transforms in an indexed location. Built once at the beginning of the program.
Definition at line 20 of file optimization_engine.hpp.
|
inline |
Returns a vector of possible transforms for a given stage and node type.
size_t turi::query_eval::optimization_transform_registry::num_stages | ( | ) | const |
The number of distinct optimization stages in the model.
void turi::query_eval::optimization_transform_registry::register_optimization | ( | const std::vector< size_t > & | valid_stages, |
std::shared_ptr< opt_transform > | opt | ||
) |
Called by the populate_transforms function in optimization_transforms.cpp.
void turi::query_eval::optimization_transform_registry::set_num_stages | ( | size_t | n | ) |
Called first to set the number of stages.