OmniSciDB  bf83d84833
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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::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::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::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

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

Definition at line 669 of file RelAlgDagBuilder.h.

References hint_name_.

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:

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

Definition at line 663 of file RelAlgDagBuilder.h.

References inherit_paths_.

663 { return inherit_paths_; }
std::vector< int > inherit_paths_
const std::unordered_map<std::string, std::string>& HintExplained::getKVOptions ( )
inline

Definition at line 665 of file RelAlgDagBuilder.h.

References kv_options_.

665  {
666  return kv_options_;
667  }
std::unordered_map< std::string, std::string > kv_options_
const std::vector<std::string>& HintExplained::getListOptions ( )
inline

Definition at line 661 of file RelAlgDagBuilder.h.

References list_options_.

661 { return list_options_; }
std::vector< std::string > list_options_
bool HintExplained::hasKvOptions ( ) const
inline

Definition at line 675 of file RelAlgDagBuilder.h.

References has_kv_type_options_.

675 { return has_kv_type_options_; }
bool HintExplained::hasOptions ( ) const
inline

Definition at line 673 of file RelAlgDagBuilder.h.

References is_marker_.

673 { return is_marker_; }
bool HintExplained::isQueryHint ( ) const
inline

Definition at line 671 of file RelAlgDagBuilder.h.

References query_hint_.

671 { return query_hint_; }
void HintExplained::setInheritPaths ( std::vector< int > &  interit_paths)
inline

Definition at line 657 of file RelAlgDagBuilder.h.

References inherit_paths_.

657  {
658  inherit_paths_ = interit_paths;
659  }
std::vector< int > inherit_paths_
void HintExplained::setKVOptions ( std::unordered_map< std::string, std::string > &  kv_options)
inline

Definition at line 653 of file RelAlgDagBuilder.h.

References kv_options_.

653  {
654  kv_options_ = kv_options;
655  }
std::unordered_map< std::string, std::string > kv_options_
void HintExplained::setListOptions ( std::vector< std::string > &  list_options)
inline

Definition at line 649 of file RelAlgDagBuilder.h.

References list_options_.

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

Member Data Documentation

bool HintExplained::has_kv_type_options_
private

Definition at line 686 of file RelAlgDagBuilder.h.

Referenced by hasKvOptions().

std::string HintExplained::hint_name_
private

Definition at line 678 of file RelAlgDagBuilder.h.

Referenced by getHintName().

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

Definition at line 687 of file RelAlgDagBuilder.h.

Referenced by getInteritPath(), and setInheritPaths().

bool HintExplained::is_marker_
private

Definition at line 683 of file RelAlgDagBuilder.h.

Referenced by hasOptions().

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

Definition at line 689 of file RelAlgDagBuilder.h.

Referenced by getKVOptions(), and setKVOptions().

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

Definition at line 688 of file RelAlgDagBuilder.h.

Referenced by getListOptions(), and setListOptions().

bool HintExplained::query_hint_
private

Definition at line 681 of file RelAlgDagBuilder.h.

Referenced by isQueryHint().


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