OmniSciDB  085a039ca4
 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 65 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 70 of file QueryHint.h.

74  : hint_(hint)
75  , global_hint_(global_hint)
76  , is_marker_(is_marker)
77  , has_kv_type_options_(has_kv_type_options) {}
bool has_kv_type_options_
Definition: QueryHint.h:138
QueryHint hint_
Definition: QueryHint.h:130
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 79 of file QueryHint.h.

84  : hint_(hint)
85  , global_hint_(global_hint)
86  , is_marker_(is_marker)
87  , has_kv_type_options_(has_kv_type_options)
88  , list_options_(std::move(list_options)) {}
std::vector< std::string > list_options_
Definition: QueryHint.h:140
bool has_kv_type_options_
Definition: QueryHint.h:138
QueryHint hint_
Definition: QueryHint.h:130
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 90 of file QueryHint.h.

95  : hint_(hint)
96  , global_hint_(global_hint)
97  , is_marker_(is_marker)
98  , has_kv_type_options_(has_kv_type_options)
99  , kv_options_(std::move(kv_options)) {}
std::unordered_map< std::string, std::string > kv_options_
Definition: QueryHint.h:141
bool has_kv_type_options_
Definition: QueryHint.h:138
QueryHint hint_
Definition: QueryHint.h:130

Member Function Documentation

const QueryHint ExplainedQueryHint::getHint ( ) const
inline

Definition at line 121 of file QueryHint.h.

References hint_.

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

121 { return hint_; }
QueryHint hint_
Definition: QueryHint.h:130

+ Here is the caller graph for this function:

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

Definition at line 115 of file QueryHint.h.

References inherit_paths_.

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

Definition at line 117 of file QueryHint.h.

References kv_options_.

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

Definition at line 113 of file QueryHint.h.

References list_options_.

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

Definition at line 127 of file QueryHint.h.

References has_kv_type_options_.

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

Definition at line 125 of file QueryHint.h.

References is_marker_.

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

Definition at line 123 of file QueryHint.h.

References global_hint_.

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

Definition at line 109 of file QueryHint.h.

References inherit_paths_.

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

Definition at line 105 of file QueryHint.h.

References kv_options_.

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

Definition at line 101 of file QueryHint.h.

References list_options_.

101  {
102  list_options_ = list_options;
103  }
std::vector< std::string > list_options_
Definition: QueryHint.h:140

Member Data Documentation

bool ExplainedQueryHint::global_hint_
private

Definition at line 133 of file QueryHint.h.

Referenced by isGlobalHint().

bool ExplainedQueryHint::has_kv_type_options_
private

Definition at line 138 of file QueryHint.h.

Referenced by hasKvOptions().

QueryHint ExplainedQueryHint::hint_
private

Definition at line 130 of file QueryHint.h.

Referenced by getHint().

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

Definition at line 139 of file QueryHint.h.

Referenced by getInteritPath(), and setInheritPaths().

bool ExplainedQueryHint::is_marker_
private

Definition at line 135 of file QueryHint.h.

Referenced by hasOptions().

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

Definition at line 141 of file QueryHint.h.

Referenced by getKVOptions(), and setKVOptions().

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

Definition at line 140 of file QueryHint.h.

Referenced by getListOptions(), and setListOptions().


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