Turi Create  4.0
turi::query_eval::optimization_transform_registry Struct Reference

#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
 

Detailed Description

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.

Member Function Documentation

◆ get_transforms()

const std::vector<std::shared_ptr<opt_transform> >& turi::query_eval::optimization_transform_registry::get_transforms ( size_t  stage,
planner_node_type  t 
) const
inline

Returns a vector of possible transforms for a given stage and node type.

◆ num_stages()

size_t turi::query_eval::optimization_transform_registry::num_stages ( ) const

The number of distinct optimization stages in the model.

◆ register_optimization()

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.

◆ set_num_stages()

void turi::query_eval::optimization_transform_registry::set_num_stages ( size_t  n)

Called first to set the number of stages.


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