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

#include <QueryHint.h>

Public Member Functions

 ExplainedQueryHint ()
 
 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
 
const std::vector< int > & getInteritPath () const
 
const std::unordered_map
< std::string, std::string > & 
getKVOptions () const
 
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 100 of file QueryHint.h.

Constructor & Destructor Documentation

ExplainedQueryHint::ExplainedQueryHint ( )
inline

Definition at line 106 of file QueryHint.h.

References kInvalidHint.

108  , global_hint_{false}
109  , is_marker_{false}
110  , has_kv_type_options_{false} {}
bool has_kv_type_options_
Definition: QueryHint.h:180
QueryHint hint_
Definition: QueryHint.h:172
ExplainedQueryHint::ExplainedQueryHint ( QueryHint  hint,
bool  global_hint,
bool  is_marker,
bool  has_kv_type_options 
)
inline

Definition at line 112 of file QueryHint.h.

116  : hint_(hint)
117  , global_hint_(global_hint)
118  , is_marker_(is_marker)
119  , has_kv_type_options_(has_kv_type_options) {}
bool has_kv_type_options_
Definition: QueryHint.h:180
QueryHint hint_
Definition: QueryHint.h:172
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 121 of file QueryHint.h.

126  : hint_(hint)
127  , global_hint_(global_hint)
128  , is_marker_(is_marker)
129  , has_kv_type_options_(has_kv_type_options)
130  , list_options_(std::move(list_options)) {}
std::vector< std::string > list_options_
Definition: QueryHint.h:182
bool has_kv_type_options_
Definition: QueryHint.h:180
QueryHint hint_
Definition: QueryHint.h:172
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 132 of file QueryHint.h.

137  : hint_(hint)
138  , global_hint_(global_hint)
139  , is_marker_(is_marker)
140  , has_kv_type_options_(has_kv_type_options)
141  , kv_options_(std::move(kv_options)) {}
std::unordered_map< std::string, std::string > kv_options_
Definition: QueryHint.h:183
bool has_kv_type_options_
Definition: QueryHint.h:180
QueryHint hint_
Definition: QueryHint.h:172

Member Function Documentation

const QueryHint ExplainedQueryHint::getHint ( ) const
inline

Definition at line 163 of file QueryHint.h.

References hint_.

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

163 { return hint_; }
QueryHint hint_
Definition: QueryHint.h:172

+ Here is the caller graph for this function:

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

Definition at line 157 of file QueryHint.h.

References inherit_paths_.

Referenced by boost::serialization::save().

157 { return inherit_paths_; }
std::vector< int > inherit_paths_
Definition: QueryHint.h:181

+ Here is the caller graph for this function:

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

Definition at line 159 of file QueryHint.h.

References kv_options_.

Referenced by boost::serialization::save().

159  {
160  return kv_options_;
161  }
std::unordered_map< std::string, std::string > kv_options_
Definition: QueryHint.h:183

+ Here is the caller graph for this function:

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

Definition at line 155 of file QueryHint.h.

References list_options_.

Referenced by boost::serialization::save().

155 { return list_options_; }
std::vector< std::string > list_options_
Definition: QueryHint.h:182

+ Here is the caller graph for this function:

bool ExplainedQueryHint::hasKvOptions ( ) const
inline

Definition at line 169 of file QueryHint.h.

References has_kv_type_options_.

Referenced by boost::serialization::save_construct_data().

169 { return has_kv_type_options_; }
bool has_kv_type_options_
Definition: QueryHint.h:180

+ Here is the caller graph for this function:

bool ExplainedQueryHint::hasOptions ( ) const
inline

Definition at line 167 of file QueryHint.h.

References is_marker_.

Referenced by boost::serialization::save_construct_data().

167 { return is_marker_; }

+ Here is the caller graph for this function:

bool ExplainedQueryHint::isGlobalHint ( ) const
inline

Definition at line 165 of file QueryHint.h.

References global_hint_.

Referenced by boost::serialization::save_construct_data().

165 { return global_hint_; }

+ Here is the caller graph for this function:

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

Definition at line 151 of file QueryHint.h.

References inherit_paths_.

Referenced by boost::serialization::load().

151  {
152  inherit_paths_ = interit_paths;
153  }
std::vector< int > inherit_paths_
Definition: QueryHint.h:181

+ Here is the caller graph for this function:

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

Definition at line 147 of file QueryHint.h.

References kv_options_.

Referenced by boost::serialization::load().

147  {
148  kv_options_ = kv_options;
149  }
std::unordered_map< std::string, std::string > kv_options_
Definition: QueryHint.h:183

+ Here is the caller graph for this function:

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

Definition at line 143 of file QueryHint.h.

References list_options_.

Referenced by boost::serialization::load().

143  {
144  list_options_ = list_options;
145  }
std::vector< std::string > list_options_
Definition: QueryHint.h:182

+ Here is the caller graph for this function:

Member Data Documentation

bool ExplainedQueryHint::global_hint_
private

Definition at line 175 of file QueryHint.h.

Referenced by isGlobalHint().

bool ExplainedQueryHint::has_kv_type_options_
private

Definition at line 180 of file QueryHint.h.

Referenced by hasKvOptions().

QueryHint ExplainedQueryHint::hint_
private

Definition at line 172 of file QueryHint.h.

Referenced by getHint().

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

Definition at line 181 of file QueryHint.h.

Referenced by getInteritPath(), and setInheritPaths().

bool ExplainedQueryHint::is_marker_
private

Definition at line 177 of file QueryHint.h.

Referenced by hasOptions().

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

Definition at line 183 of file QueryHint.h.

Referenced by getKVOptions(), and setKVOptions().

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

Definition at line 182 of file QueryHint.h.

Referenced by getListOptions(), and setListOptions().


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