OmniSciDB  a987f07e93
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Types.h File Reference
#include <ostream>
#include <sstream>
+ Include dependency graph for Types.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  QueryDescriptionType {
  QueryDescriptionType::GroupByPerfectHash, QueryDescriptionType::GroupByBaselineHash, QueryDescriptionType::Projection, QueryDescriptionType::TableFunction,
  QueryDescriptionType::NonGroupedAggregate, QueryDescriptionType::Estimator
}
 

Functions

std::ostream & operator<< (std::ostream &os, const QueryDescriptionType &type)
 
std::string toString (const QueryDescriptionType &type)
 

Enumeration Type Documentation

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const QueryDescriptionType type 
)
inline

Definition at line 38 of file Types.h.

References Estimator, GroupByBaselineHash, GroupByPerfectHash, NonGroupedAggregate, Projection, and TableFunction.

38  {
39  switch (type) {
41  os << "GroupByPerfectHash";
42  break;
44  os << "GroupByBaselineHash";
45  break;
47  os << "Projection";
48  break;
50  os << "TableFunction";
51  break;
53  os << "NonGroupedAggregate";
54  break;
56  os << "Estimator";
57  break;
58  default:
59  os << "Unknown QueryDescriptionType";
60  }
61  return os;
62 }
std::string toString ( const QueryDescriptionType type)
inline

Definition at line 64 of file Types.h.

References run_benchmark_import::type.

64  {
65  std::ostringstream ss;
66  ss << type;
67  return ss.str();
68 }