OmniSciDB  91042dcc5b
 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 61 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 66 of file QueryHint.h.

70  : hint_(hint)
71  , global_hint_(global_hint)
72  , is_marker_(is_marker)
73  , has_kv_type_options_(has_kv_type_options) {}
bool has_kv_type_options_
Definition: QueryHint.h:134
QueryHint hint_
Definition: QueryHint.h:126
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 75 of file QueryHint.h.

80  : hint_(hint)
81  , global_hint_(global_hint)
82  , is_marker_(is_marker)
83  , has_kv_type_options_(has_kv_type_options)
84  , list_options_(std::move(list_options)) {}
std::vector< std::string > list_options_
Definition: QueryHint.h:136
bool has_kv_type_options_
Definition: QueryHint.h:134
QueryHint hint_
Definition: QueryHint.h:126
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 86 of file QueryHint.h.

91  : hint_(hint)
92  , global_hint_(global_hint)
93  , is_marker_(is_marker)
94  , has_kv_type_options_(has_kv_type_options)
95  , kv_options_(std::move(kv_options)) {}
std::unordered_map< std::string, std::string > kv_options_
Definition: QueryHint.h:137
bool has_kv_type_options_
Definition: QueryHint.h:134
QueryHint hint_
Definition: QueryHint.h:126

Member Function Documentation

const QueryHint ExplainedQueryHint::getHint ( ) const
inline

Definition at line 117 of file QueryHint.h.

References hint_.

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

117 { return hint_; }
QueryHint hint_
Definition: QueryHint.h:126

+ Here is the caller graph for this function:

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

Definition at line 111 of file QueryHint.h.

References inherit_paths_.

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

Definition at line 113 of file QueryHint.h.

References kv_options_.

113  {
114  return kv_options_;
115  }
std::unordered_map< std::string, std::string > kv_options_
Definition: QueryHint.h:137
const std::vector<std::string>& ExplainedQueryHint::getListOptions ( )
inline

Definition at line 109 of file QueryHint.h.

References list_options_.

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

Definition at line 123 of file QueryHint.h.

References has_kv_type_options_.

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

Definition at line 121 of file QueryHint.h.

References is_marker_.

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

Definition at line 119 of file QueryHint.h.

References global_hint_.

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

Definition at line 105 of file QueryHint.h.

References inherit_paths_.

105  {
106  inherit_paths_ = interit_paths;
107  }
std::vector< int > inherit_paths_
Definition: QueryHint.h:135
void ExplainedQueryHint::setKVOptions ( std::unordered_map< std::string, std::string > &  kv_options)
inline

Definition at line 101 of file QueryHint.h.

References kv_options_.

101  {
102  kv_options_ = kv_options;
103  }
std::unordered_map< std::string, std::string > kv_options_
Definition: QueryHint.h:137
void ExplainedQueryHint::setListOptions ( std::vector< std::string > &  list_options)
inline

Definition at line 97 of file QueryHint.h.

References list_options_.

97  {
98  list_options_ = list_options;
99  }
std::vector< std::string > list_options_
Definition: QueryHint.h:136

Member Data Documentation

bool ExplainedQueryHint::global_hint_
private

Definition at line 129 of file QueryHint.h.

Referenced by isGlobalHint().

bool ExplainedQueryHint::has_kv_type_options_
private

Definition at line 134 of file QueryHint.h.

Referenced by hasKvOptions().

QueryHint ExplainedQueryHint::hint_
private

Definition at line 126 of file QueryHint.h.

Referenced by getHint().

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

Definition at line 135 of file QueryHint.h.

Referenced by getInteritPath(), and setInheritPaths().

bool ExplainedQueryHint::is_marker_
private

Definition at line 131 of file QueryHint.h.

Referenced by hasOptions().

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

Definition at line 137 of file QueryHint.h.

Referenced by getKVOptions(), and setKVOptions().

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

Definition at line 136 of file QueryHint.h.

Referenced by getListOptions(), and setListOptions().


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