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

#include <QueryHint.h>

Public Member Functions

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

Private Attributes

QueryHint hint_
 
bool global_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 67 of file QueryHint.h.

Constructor & Destructor Documentation

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

Definition at line 72 of file QueryHint.h.

76  : hint_(hint)
77  , global_hint_(global_hint)
78  , is_marker_(is_marker)
79  , has_kv_type_options_(has_kv_type_options) {}
bool has_kv_type_options_
Definition: QueryHint.h:140
QueryHint hint_
Definition: QueryHint.h:132
ExplainedQueryHint::ExplainedQueryHint ( QueryHint  hint,
bool  global_hint,
bool  is_marker,
bool  has_kv_type_options,
std::vector< std::string > &  list_options 
)
inline

Definition at line 81 of file QueryHint.h.

86  : hint_(hint)
87  , global_hint_(global_hint)
88  , is_marker_(is_marker)
89  , has_kv_type_options_(has_kv_type_options)
90  , list_options_(std::move(list_options)) {}
std::vector< std::string > list_options_
Definition: QueryHint.h:142
bool has_kv_type_options_
Definition: QueryHint.h:140
QueryHint hint_
Definition: QueryHint.h:132
ExplainedQueryHint::ExplainedQueryHint ( QueryHint  hint,
bool  global_hint,
bool  is_marker,
bool  has_kv_type_options,
std::unordered_map< std::string, std::string > &  kv_options 
)
inline

Definition at line 92 of file QueryHint.h.

97  : hint_(hint)
98  , global_hint_(global_hint)
99  , is_marker_(is_marker)
100  , has_kv_type_options_(has_kv_type_options)
101  , kv_options_(std::move(kv_options)) {}
std::unordered_map< std::string, std::string > kv_options_
Definition: QueryHint.h:143
bool has_kv_type_options_
Definition: QueryHint.h:140
QueryHint hint_
Definition: QueryHint.h:132

Member Function Documentation

const QueryHint ExplainedQueryHint::getHint ( ) const
inline

Definition at line 123 of file QueryHint.h.

References hint_.

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

123 { return hint_; }
QueryHint hint_
Definition: QueryHint.h:132

+ Here is the caller graph for this function:

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

Definition at line 117 of file QueryHint.h.

References inherit_paths_.

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

Definition at line 119 of file QueryHint.h.

References kv_options_.

119  {
120  return kv_options_;
121  }
std::unordered_map< std::string, std::string > kv_options_
Definition: QueryHint.h:143
const std::vector<std::string>& ExplainedQueryHint::getListOptions ( )
inline

Definition at line 115 of file QueryHint.h.

References list_options_.

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

Definition at line 129 of file QueryHint.h.

References has_kv_type_options_.

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

Definition at line 127 of file QueryHint.h.

References is_marker_.

127 { return is_marker_; }
bool ExplainedQueryHint::isGlobalHint ( ) const
inline

Definition at line 125 of file QueryHint.h.

References global_hint_.

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

Definition at line 111 of file QueryHint.h.

References inherit_paths_.

111  {
112  inherit_paths_ = interit_paths;
113  }
std::vector< int > inherit_paths_
Definition: QueryHint.h:141
void ExplainedQueryHint::setKVOptions ( std::unordered_map< std::string, std::string > &  kv_options)
inline

Definition at line 107 of file QueryHint.h.

References kv_options_.

107  {
108  kv_options_ = kv_options;
109  }
std::unordered_map< std::string, std::string > kv_options_
Definition: QueryHint.h:143
void ExplainedQueryHint::setListOptions ( std::vector< std::string > &  list_options)
inline

Definition at line 103 of file QueryHint.h.

References list_options_.

103  {
104  list_options_ = list_options;
105  }
std::vector< std::string > list_options_
Definition: QueryHint.h:142

Member Data Documentation

bool ExplainedQueryHint::global_hint_
private

Definition at line 135 of file QueryHint.h.

Referenced by isGlobalHint().

bool ExplainedQueryHint::has_kv_type_options_
private

Definition at line 140 of file QueryHint.h.

Referenced by hasKvOptions().

QueryHint ExplainedQueryHint::hint_
private

Definition at line 132 of file QueryHint.h.

Referenced by getHint().

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

Definition at line 141 of file QueryHint.h.

Referenced by getInteritPath(), and setInheritPaths().

bool ExplainedQueryHint::is_marker_
private

Definition at line 137 of file QueryHint.h.

Referenced by hasOptions().

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

Definition at line 143 of file QueryHint.h.

Referenced by getKVOptions(), and setKVOptions().

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

Definition at line 142 of file QueryHint.h.

Referenced by getListOptions(), and setListOptions().


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