OmniSciDB  c1a53651b2
 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 91 of file QueryHint.h.

Constructor & Destructor Documentation

ExplainedQueryHint::ExplainedQueryHint ( )
inline

Definition at line 97 of file QueryHint.h.

References kInvalidHint.

99  , global_hint_{false}
100  , is_marker_{false}
101  , has_kv_type_options_{false} {}
bool has_kv_type_options_
Definition: QueryHint.h:171
QueryHint hint_
Definition: QueryHint.h:163
ExplainedQueryHint::ExplainedQueryHint ( QueryHint  hint,
bool  global_hint,
bool  is_marker,
bool  has_kv_type_options 
)
inline

Definition at line 103 of file QueryHint.h.

107  : hint_(hint)
108  , global_hint_(global_hint)
109  , is_marker_(is_marker)
110  , has_kv_type_options_(has_kv_type_options) {}
bool has_kv_type_options_
Definition: QueryHint.h:171
QueryHint hint_
Definition: QueryHint.h:163
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 112 of file QueryHint.h.

117  : hint_(hint)
118  , global_hint_(global_hint)
119  , is_marker_(is_marker)
120  , has_kv_type_options_(has_kv_type_options)
121  , list_options_(std::move(list_options)) {}
std::vector< std::string > list_options_
Definition: QueryHint.h:173
bool has_kv_type_options_
Definition: QueryHint.h:171
QueryHint hint_
Definition: QueryHint.h:163
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 123 of file QueryHint.h.

128  : hint_(hint)
129  , global_hint_(global_hint)
130  , is_marker_(is_marker)
131  , has_kv_type_options_(has_kv_type_options)
132  , kv_options_(std::move(kv_options)) {}
std::unordered_map< std::string, std::string > kv_options_
Definition: QueryHint.h:174
bool has_kv_type_options_
Definition: QueryHint.h:171
QueryHint hint_
Definition: QueryHint.h:163

Member Function Documentation

const QueryHint ExplainedQueryHint::getHint ( ) const
inline

Definition at line 154 of file QueryHint.h.

References hint_.

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

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

+ Here is the caller graph for this function:

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

Definition at line 148 of file QueryHint.h.

References inherit_paths_.

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

148 { return inherit_paths_; }
std::vector< int > inherit_paths_
Definition: QueryHint.h:172

+ Here is the caller graph for this function:

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

Definition at line 150 of file QueryHint.h.

References kv_options_.

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

150  {
151  return kv_options_;
152  }
std::unordered_map< std::string, std::string > kv_options_
Definition: QueryHint.h:174

+ Here is the caller graph for this function:

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

Definition at line 146 of file QueryHint.h.

References list_options_.

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

146 { return list_options_; }
std::vector< std::string > list_options_
Definition: QueryHint.h:173

+ Here is the caller graph for this function:

bool ExplainedQueryHint::hasKvOptions ( ) const
inline

Definition at line 160 of file QueryHint.h.

References has_kv_type_options_.

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

160 { return has_kv_type_options_; }
bool has_kv_type_options_
Definition: QueryHint.h:171

+ Here is the caller graph for this function:

bool ExplainedQueryHint::hasOptions ( ) const
inline

Definition at line 158 of file QueryHint.h.

References is_marker_.

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

158 { return is_marker_; }

+ Here is the caller graph for this function:

bool ExplainedQueryHint::isGlobalHint ( ) const
inline

Definition at line 156 of file QueryHint.h.

References global_hint_.

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

156 { return global_hint_; }

+ Here is the caller graph for this function:

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

Definition at line 142 of file QueryHint.h.

References inherit_paths_.

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

142  {
143  inherit_paths_ = interit_paths;
144  }
std::vector< int > inherit_paths_
Definition: QueryHint.h:172

+ Here is the caller graph for this function:

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

Definition at line 138 of file QueryHint.h.

References kv_options_.

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

138  {
139  kv_options_ = kv_options;
140  }
std::unordered_map< std::string, std::string > kv_options_
Definition: QueryHint.h:174

+ Here is the caller graph for this function:

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

Definition at line 134 of file QueryHint.h.

References list_options_.

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

134  {
135  list_options_ = list_options;
136  }
std::vector< std::string > list_options_
Definition: QueryHint.h:173

+ Here is the caller graph for this function:

Member Data Documentation

bool ExplainedQueryHint::global_hint_
private

Definition at line 166 of file QueryHint.h.

Referenced by isGlobalHint().

bool ExplainedQueryHint::has_kv_type_options_
private

Definition at line 171 of file QueryHint.h.

Referenced by hasKvOptions().

QueryHint ExplainedQueryHint::hint_
private

Definition at line 163 of file QueryHint.h.

Referenced by getHint().

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

Definition at line 172 of file QueryHint.h.

Referenced by getInteritPath(), and setInheritPaths().

bool ExplainedQueryHint::is_marker_
private

Definition at line 168 of file QueryHint.h.

Referenced by hasOptions().

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

Definition at line 174 of file QueryHint.h.

Referenced by getKVOptions(), and setKVOptions().

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

Definition at line 173 of file QueryHint.h.

Referenced by getListOptions(), and setListOptions().


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