OmniSciDB  a5dc49c757
 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 104 of file QueryHint.h.

Constructor & Destructor Documentation

ExplainedQueryHint::ExplainedQueryHint ( )
inline

Definition at line 110 of file QueryHint.h.

References kInvalidHint.

112  , global_hint_{false}
113  , is_marker_{false}
114  , has_kv_type_options_{false} {}
bool has_kv_type_options_
Definition: QueryHint.h:184
QueryHint hint_
Definition: QueryHint.h:176
ExplainedQueryHint::ExplainedQueryHint ( QueryHint  hint,
bool  global_hint,
bool  is_marker,
bool  has_kv_type_options 
)
inline

Definition at line 116 of file QueryHint.h.

120  : hint_(hint)
121  , global_hint_(global_hint)
122  , is_marker_(is_marker)
123  , has_kv_type_options_(has_kv_type_options) {}
bool has_kv_type_options_
Definition: QueryHint.h:184
QueryHint hint_
Definition: QueryHint.h:176
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 125 of file QueryHint.h.

130  : hint_(hint)
131  , global_hint_(global_hint)
132  , is_marker_(is_marker)
133  , has_kv_type_options_(has_kv_type_options)
134  , list_options_(std::move(list_options)) {}
std::vector< std::string > list_options_
Definition: QueryHint.h:186
bool has_kv_type_options_
Definition: QueryHint.h:184
QueryHint hint_
Definition: QueryHint.h:176
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 136 of file QueryHint.h.

141  : hint_(hint)
142  , global_hint_(global_hint)
143  , is_marker_(is_marker)
144  , has_kv_type_options_(has_kv_type_options)
145  , kv_options_(std::move(kv_options)) {}
std::unordered_map< std::string, std::string > kv_options_
Definition: QueryHint.h:187
bool has_kv_type_options_
Definition: QueryHint.h:184
QueryHint hint_
Definition: QueryHint.h:176

Member Function Documentation

const QueryHint ExplainedQueryHint::getHint ( ) const
inline

Definition at line 167 of file QueryHint.h.

References hint_.

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

167 { return hint_; }
QueryHint hint_
Definition: QueryHint.h:176

+ Here is the caller graph for this function:

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

Definition at line 161 of file QueryHint.h.

References inherit_paths_.

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

161 { return inherit_paths_; }
std::vector< int > inherit_paths_
Definition: QueryHint.h:185

+ Here is the caller graph for this function:

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

Definition at line 163 of file QueryHint.h.

References kv_options_.

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

163  {
164  return kv_options_;
165  }
std::unordered_map< std::string, std::string > kv_options_
Definition: QueryHint.h:187

+ Here is the caller graph for this function:

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

Definition at line 159 of file QueryHint.h.

References list_options_.

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

159 { return list_options_; }
std::vector< std::string > list_options_
Definition: QueryHint.h:186

+ Here is the caller graph for this function:

bool ExplainedQueryHint::hasKvOptions ( ) const
inline

Definition at line 173 of file QueryHint.h.

References has_kv_type_options_.

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

173 { return has_kv_type_options_; }
bool has_kv_type_options_
Definition: QueryHint.h:184

+ Here is the caller graph for this function:

bool ExplainedQueryHint::hasOptions ( ) const
inline

Definition at line 171 of file QueryHint.h.

References is_marker_.

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

171 { return is_marker_; }

+ Here is the caller graph for this function:

bool ExplainedQueryHint::isGlobalHint ( ) const
inline

Definition at line 169 of file QueryHint.h.

References global_hint_.

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

169 { return global_hint_; }

+ Here is the caller graph for this function:

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

Definition at line 155 of file QueryHint.h.

References inherit_paths_.

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

155  {
156  inherit_paths_ = interit_paths;
157  }
std::vector< int > inherit_paths_
Definition: QueryHint.h:185

+ Here is the caller graph for this function:

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

Definition at line 151 of file QueryHint.h.

References kv_options_.

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

151  {
152  kv_options_ = kv_options;
153  }
std::unordered_map< std::string, std::string > kv_options_
Definition: QueryHint.h:187

+ Here is the caller graph for this function:

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

Definition at line 147 of file QueryHint.h.

References list_options_.

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

147  {
148  list_options_ = list_options;
149  }
std::vector< std::string > list_options_
Definition: QueryHint.h:186

+ Here is the caller graph for this function:

Member Data Documentation

bool ExplainedQueryHint::global_hint_
private

Definition at line 179 of file QueryHint.h.

Referenced by isGlobalHint().

bool ExplainedQueryHint::has_kv_type_options_
private

Definition at line 184 of file QueryHint.h.

Referenced by hasKvOptions().

QueryHint ExplainedQueryHint::hint_
private

Definition at line 176 of file QueryHint.h.

Referenced by getHint().

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

Definition at line 185 of file QueryHint.h.

Referenced by getInteritPath(), and setInheritPaths().

bool ExplainedQueryHint::is_marker_
private

Definition at line 181 of file QueryHint.h.

Referenced by hasOptions().

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

Definition at line 187 of file QueryHint.h.

Referenced by getKVOptions(), and setKVOptions().

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

Definition at line 186 of file QueryHint.h.

Referenced by getListOptions(), and setListOptions().


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