OmniSciDB  72c90bc290
 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.

Referenced by anonymous_namespace{SerializeToSql.cpp}::agg_to_string(), WindowFunctionContext::buildAggregationTreeForPartition(), CardinalityCacheKey::CardinalityCacheKey(), org.apache.calcite.sql.validate.SqlValidatorImpl::checkRollUp(), DBHandler::clear_gpu_memory(), DBHandler::clearRenderMemory(), DBHandler::clone_session(), StringDictionaryTranslationMgr::codegen(), CodeGenerator::codegenCastNonStringToString(), CodeGenerator::codegenFunctionOperCastArgs(), CodeGenerator::codegenHoistedConstantsLoads(), CodeGenerator::codegenPerRowStringOper(), WindowFunctionContext::compute(), WindowFunctionContext::computeAggregateTreeCacheKey(), WindowFunctionContext::computePartitionBuffer(), DBHandler::connect(), DBHandler::connect_impl(), DBHandler::create_custom_expression(), DBHandler::create_dashboard(), DBHandler::create_link(), DBHandler::create_table(), ct_make_multipolygon__cpu_(), ct_make_polygon3__cpu_(), ct_to_multilinestring__cpu_(), ct_to_polygon__cpu_(), dateTimeParse(), DBHandler::delete_custom_expressions(), DBHandler::delete_dashboards(), DBHandler::detect_column_types(), DBHandler::disconnect(), anonymous_namespace{ResultSetReductionJIT.cpp}::emit_aggregate_one_nullable_value(), Parser::CopyTableStmt::execute(), Executor::executeWorkUnitImpl(), QueryPlanDagExtractor::extractQueryPlanDagImpl(), DBHandler::get_all_files_in_archive(), DBHandler::get_custom_expressions(), DBHandler::get_dashboard(), DBHandler::get_dashboard_grantees(), DBHandler::get_dashboards(), DBHandler::get_databases(), DBHandler::get_device_parameters(), DBHandler::get_first_geo_file_in_archive(), DBHandler::get_hardware_info(), Geo::get_input_srid(), DBHandler::get_internal_table_details(), DBHandler::get_internal_table_details_for_database(), Geo::get_is_geoint(), DBHandler::get_layers_in_geo_file(), DBHandler::get_link_view(), anonymous_namespace{TableFunctionCompilationContext.cpp}::get_llvm_type_from_sql_column_type(), DBHandler::get_memory(), get_node_output(), Geo::get_output_srid(), DBHandler::get_physical_tables(), DBHandler::get_result_row_for_pixel(), DBHandler::get_server_status(), DBHandler::get_session_info(), DBHandler::get_status(), DBHandler::get_table_details(), DBHandler::get_table_details_for_database(), DBHandler::get_table_epoch(), DBHandler::get_table_epoch_by_name(), DBHandler::get_table_epochs(), DBHandler::get_tables(), DBHandler::get_tables_for_database(), DBHandler::get_tables_meta(), DBHandler::get_users(), DBHandler::get_views(), Column< GeoPoint >::getItem(), DBHandler::getQueries(), QueryPlanDagExtractor::handleLeftDeepJoinTree(), hash_value(), DBHandler::import_table(), DBHandler::import_table_status(), import_export::Importer::importGDALGeo(), import_export::Importer::importGDALRaster(), DBHandler::importGeoTableSingle(), DBHandler::interrupt(), DBHandler::invalidate_cur_session(), Column< GeoPoint >::isNull(), DBHandler::load_table(), DBHandler::load_table_binary(), DBHandler::load_table_binary_columnar(), org.apache.calcite.rel.rules.OuterJoinOptViaNullRejectionRule::onMatch(), operator<<(), anonymous_namespace{Datum.cpp}::parseInteger(), DBHandler::pause_executor_queue(), com.mapd.parser.server.CalciteServerHandler::process(), ResultSetStorage::reduceOneSlot(), DBHandler::register_runtime_extension_functions(), org.apache.calcite.sql.validate.SqlValidatorImpl::registerFrom(), QueryPlanDagExtractor::registerNodeToDagCache(), DBHandler::render_vega(), DBHandler::replace_dashboard(), DBHandler::resume_executor_queue(), DBHandler::set_cur_session(), DBHandler::set_execution_mode(), DBHandler::set_table_epoch(), DBHandler::set_table_epoch_by_name(), DBHandler::set_table_epochs(), Column< GeoPoint >::setItem(), Column< GeoPoint >::setNull(), DBHandler::shareOrUnshareDashboards(), DBHandler::sql_execute(), DBHandler::sql_validate(), spatial_type::suffix(), DBHandler::switch_database(), com.mapd.calcite.parser.HeavyDBParser::tableAliasFinder(), GDALTableFunctions::tf_raster_contour_impl(), toString(), Column< TextEncodingDict >::toString(), ColumnList< T >::toString(), ColumnList< Array< T > >::toString(), ColumnList< TextEncodingDict >::toString(), Analyzer::WindowFrame::toString(), toStringImpl(), RelAlgTranslator::translateAggregateRex(), RelAlgTranslator::translateWindowFunction(), tree_string(), DBHandler::update_custom_expression(), Executor::update_extension_modules(), org.apache.calcite.sql.validate.SqlValidatorImpl::validateAccess(), and ScalarExprToSql::visitWindowFunction().

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