OmniSciDB  2e3a973ef4
HintExplained Class Reference

#include <RelAlgDagBuilder.h>

+ Collaboration diagram for HintExplained:

Public Member Functions

 HintExplained (std::string hint_name, bool query_hint, bool is_marker, bool has_kv_type_options)
 
 HintExplained (std::string hint_name, bool query_hint, bool is_marker, bool has_kv_type_options, std::vector< std::string > &list_options)
 
 HintExplained (std::string hint_name, bool query_hint, bool is_marker, bool has_kv_type_options, std::unordered_map< std::string, std::string > &kv_options)
 
void setListOptions (std::vector< std::string > &list_options)
 
void setKVOptions (std::unordered_map< std::string, std::string > &kv_options)
 
void setInheritPaths (std::vector< int > &interit_paths)
 
const std::vector< std::string > & getListOptions ()
 
const std::vector< int > & getInteritPath ()
 
const std::unordered_map< std::string, std::string > & getKVOptions ()
 
const std::string & getHintName () const
 
bool isQueryHint () const
 
bool hasOptions () const
 
bool hasKvOptions () const
 

Private Attributes

std::string hint_name_
 
bool query_hint_
 
bool is_marker_
 
bool has_kv_type_options_
 
std::vector< int > inherit_paths_
 
std::vector< std::string > list_options_
 
std::unordered_map< std::string, std::string > kv_options_
 

Detailed Description

Definition at line 616 of file RelAlgDagBuilder.h.

Constructor & Destructor Documentation

◆ HintExplained() [1/3]

HintExplained::HintExplained ( std::string  hint_name,
bool  query_hint,
bool  is_marker,
bool  has_kv_type_options 
)
inline

Definition at line 618 of file RelAlgDagBuilder.h.

622  : hint_name_(hint_name)
623  , query_hint_(query_hint)
624  , is_marker_(is_marker)
625  , has_kv_type_options_(has_kv_type_options) {}
std::string hint_name_

◆ HintExplained() [2/3]

HintExplained::HintExplained ( std::string  hint_name,
bool  query_hint,
bool  is_marker,
bool  has_kv_type_options,
std::vector< std::string > &  list_options 
)
inline

Definition at line 627 of file RelAlgDagBuilder.h.

632  : hint_name_(hint_name)
633  , query_hint_(query_hint)
634  , is_marker_(is_marker)
635  , has_kv_type_options_(has_kv_type_options)
636  , list_options_(std::move(list_options)) {}
std::vector< std::string > list_options_
std::string hint_name_

◆ HintExplained() [3/3]

HintExplained::HintExplained ( std::string  hint_name,
bool  query_hint,
bool  is_marker,
bool  has_kv_type_options,
std::unordered_map< std::string, std::string > &  kv_options 
)
inline

Definition at line 638 of file RelAlgDagBuilder.h.

643  : hint_name_(hint_name)
644  , query_hint_(query_hint)
645  , is_marker_(is_marker)
646  , has_kv_type_options_(has_kv_type_options)
647  , kv_options_(std::move(kv_options)) {}
std::unordered_map< std::string, std::string > kv_options_
std::string hint_name_

Member Function Documentation

◆ getHintName()

const std::string& HintExplained::getHintName ( ) const
inline

Definition at line 669 of file RelAlgDagBuilder.h.

Referenced by RelScan::addHint(), RelProject::addHint(), RelAggregate::addHint(), RelJoin::addHint(), and RelCompound::addHint().

669 { return hint_name_; }
std::string hint_name_
+ Here is the caller graph for this function:

◆ getInteritPath()

const std::vector<int>& HintExplained::getInteritPath ( )
inline

Definition at line 663 of file RelAlgDagBuilder.h.

663 { return inherit_paths_; }
std::vector< int > inherit_paths_

◆ getKVOptions()

const std::unordered_map<std::string, std::string>& HintExplained::getKVOptions ( )
inline

Definition at line 665 of file RelAlgDagBuilder.h.

665  {
666  return kv_options_;
667  }
std::unordered_map< std::string, std::string > kv_options_

◆ getListOptions()

const std::vector<std::string>& HintExplained::getListOptions ( )
inline

Definition at line 661 of file RelAlgDagBuilder.h.

661 { return list_options_; }
std::vector< std::string > list_options_

◆ hasKvOptions()

bool HintExplained::hasKvOptions ( ) const
inline

Definition at line 675 of file RelAlgDagBuilder.h.

675 { return has_kv_type_options_; }

◆ hasOptions()

bool HintExplained::hasOptions ( ) const
inline

Definition at line 673 of file RelAlgDagBuilder.h.

673 { return is_marker_; }

◆ isQueryHint()

bool HintExplained::isQueryHint ( ) const
inline

Definition at line 671 of file RelAlgDagBuilder.h.

671 { return query_hint_; }

◆ setInheritPaths()

void HintExplained::setInheritPaths ( std::vector< int > &  interit_paths)
inline

Definition at line 657 of file RelAlgDagBuilder.h.

657  {
658  inherit_paths_ = interit_paths;
659  }
std::vector< int > inherit_paths_

◆ setKVOptions()

void HintExplained::setKVOptions ( std::unordered_map< std::string, std::string > &  kv_options)
inline

Definition at line 653 of file RelAlgDagBuilder.h.

653  {
654  kv_options_ = kv_options;
655  }
std::unordered_map< std::string, std::string > kv_options_

◆ setListOptions()

void HintExplained::setListOptions ( std::vector< std::string > &  list_options)
inline

Definition at line 649 of file RelAlgDagBuilder.h.

649  {
650  list_options_ = list_options;
651  }
std::vector< std::string > list_options_

Member Data Documentation

◆ has_kv_type_options_

bool HintExplained::has_kv_type_options_
private

Definition at line 686 of file RelAlgDagBuilder.h.

◆ hint_name_

std::string HintExplained::hint_name_
private

Definition at line 678 of file RelAlgDagBuilder.h.

◆ inherit_paths_

std::vector<int> HintExplained::inherit_paths_
private

Definition at line 687 of file RelAlgDagBuilder.h.

◆ is_marker_

bool HintExplained::is_marker_
private

Definition at line 683 of file RelAlgDagBuilder.h.

◆ kv_options_

std::unordered_map<std::string, std::string> HintExplained::kv_options_
private

Definition at line 689 of file RelAlgDagBuilder.h.

◆ list_options_

std::vector<std::string> HintExplained::list_options_
private

Definition at line 688 of file RelAlgDagBuilder.h.

◆ query_hint_

bool HintExplained::query_hint_
private

Definition at line 681 of file RelAlgDagBuilder.h.


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