OmniSciDB  ba1bac9284
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ExplainedQueryHint Class Reference

#include <QueryHint.h>

Public Member Functions

 ExplainedQueryHint (QueryHint hint, bool query_hint, bool is_marker, bool has_kv_type_options)
 
 ExplainedQueryHint (QueryHint hint, bool query_hint, bool is_marker, bool has_kv_type_options, std::vector< std::string > &list_options)
 
 ExplainedQueryHint (QueryHint hint, 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 QueryHint getHint () const
 
bool isQueryHint () const
 
bool hasOptions () const
 
bool hasKvOptions () const
 

Private Attributes

QueryHint hint_
 
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 48 of file QueryHint.h.

Constructor & Destructor Documentation

ExplainedQueryHint::ExplainedQueryHint ( QueryHint  hint,
bool  query_hint,
bool  is_marker,
bool  has_kv_type_options 
)
inline

Definition at line 53 of file QueryHint.h.

57  : hint_(hint)
58  , query_hint_(query_hint)
59  , is_marker_(is_marker)
60  , has_kv_type_options_(has_kv_type_options) {}
bool has_kv_type_options_
Definition: QueryHint.h:121
QueryHint hint_
Definition: QueryHint.h:113
ExplainedQueryHint::ExplainedQueryHint ( QueryHint  hint,
bool  query_hint,
bool  is_marker,
bool  has_kv_type_options,
std::vector< std::string > &  list_options 
)
inline

Definition at line 62 of file QueryHint.h.

67  : hint_(hint)
68  , query_hint_(query_hint)
69  , is_marker_(is_marker)
70  , has_kv_type_options_(has_kv_type_options)
71  , list_options_(std::move(list_options)) {}
std::vector< std::string > list_options_
Definition: QueryHint.h:123
bool has_kv_type_options_
Definition: QueryHint.h:121
QueryHint hint_
Definition: QueryHint.h:113
ExplainedQueryHint::ExplainedQueryHint ( QueryHint  hint,
bool  query_hint,
bool  is_marker,
bool  has_kv_type_options,
std::unordered_map< std::string, std::string > &  kv_options 
)
inline

Definition at line 73 of file QueryHint.h.

78  : hint_(hint)
79  , query_hint_(query_hint)
80  , is_marker_(is_marker)
81  , has_kv_type_options_(has_kv_type_options)
82  , kv_options_(std::move(kv_options)) {}
std::unordered_map< std::string, std::string > kv_options_
Definition: QueryHint.h:124
bool has_kv_type_options_
Definition: QueryHint.h:121
QueryHint hint_
Definition: QueryHint.h:113

Member Function Documentation

const QueryHint ExplainedQueryHint::getHint ( ) const
inline

Definition at line 104 of file QueryHint.h.

References hint_.

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

104 { return hint_; }
QueryHint hint_
Definition: QueryHint.h:113

+ Here is the caller graph for this function:

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

Definition at line 98 of file QueryHint.h.

References inherit_paths_.

98 { return inherit_paths_; }
std::vector< int > inherit_paths_
Definition: QueryHint.h:122
const std::unordered_map<std::string, std::string>& ExplainedQueryHint::getKVOptions ( )
inline

Definition at line 100 of file QueryHint.h.

References kv_options_.

100  {
101  return kv_options_;
102  }
std::unordered_map< std::string, std::string > kv_options_
Definition: QueryHint.h:124
const std::vector<std::string>& ExplainedQueryHint::getListOptions ( )
inline

Definition at line 96 of file QueryHint.h.

References list_options_.

96 { return list_options_; }
std::vector< std::string > list_options_
Definition: QueryHint.h:123
bool ExplainedQueryHint::hasKvOptions ( ) const
inline

Definition at line 110 of file QueryHint.h.

References has_kv_type_options_.

110 { return has_kv_type_options_; }
bool has_kv_type_options_
Definition: QueryHint.h:121
bool ExplainedQueryHint::hasOptions ( ) const
inline

Definition at line 108 of file QueryHint.h.

References is_marker_.

108 { return is_marker_; }
bool ExplainedQueryHint::isQueryHint ( ) const
inline

Definition at line 106 of file QueryHint.h.

References query_hint_.

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

Definition at line 92 of file QueryHint.h.

References inherit_paths_.

92  {
93  inherit_paths_ = interit_paths;
94  }
std::vector< int > inherit_paths_
Definition: QueryHint.h:122
void ExplainedQueryHint::setKVOptions ( std::unordered_map< std::string, std::string > &  kv_options)
inline

Definition at line 88 of file QueryHint.h.

References kv_options_.

88  {
89  kv_options_ = kv_options;
90  }
std::unordered_map< std::string, std::string > kv_options_
Definition: QueryHint.h:124
void ExplainedQueryHint::setListOptions ( std::vector< std::string > &  list_options)
inline

Definition at line 84 of file QueryHint.h.

References list_options_.

84  {
85  list_options_ = list_options;
86  }
std::vector< std::string > list_options_
Definition: QueryHint.h:123

Member Data Documentation

bool ExplainedQueryHint::has_kv_type_options_
private

Definition at line 121 of file QueryHint.h.

Referenced by hasKvOptions().

QueryHint ExplainedQueryHint::hint_
private

Definition at line 113 of file QueryHint.h.

Referenced by getHint().

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

Definition at line 122 of file QueryHint.h.

Referenced by getInteritPath(), and setInheritPaths().

bool ExplainedQueryHint::is_marker_
private

Definition at line 118 of file QueryHint.h.

Referenced by hasOptions().

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

Definition at line 124 of file QueryHint.h.

Referenced by getKVOptions(), and setKVOptions().

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

Definition at line 123 of file QueryHint.h.

Referenced by getListOptions(), and setListOptions().

bool ExplainedQueryHint::query_hint_
private

Definition at line 116 of file QueryHint.h.

Referenced by isQueryHint().


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