OmniSciDB  c1a53651b2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QueryPhysicalInputsCollector.h File Reference

Find out all the physical inputs (columns) a query is using. More...

#include <ostream>
#include <unordered_set>
+ Include dependency graph for QueryPhysicalInputsCollector.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PhysicalInput
 
struct  std::hash< PhysicalInput >
 

Namespaces

 std
 

Functions

std::ostream & operator<< (std::ostream &, PhysicalInput const &)
 
std::unordered_set< PhysicalInputget_physical_inputs (const RelAlgNode *)
 
std::unordered_set
< shared::TableKey
get_physical_table_inputs (const RelAlgNode *)
 

Detailed Description

Find out all the physical inputs (columns) a query is using.

Definition in file QueryPhysicalInputsCollector.h.

Function Documentation

std::unordered_set<PhysicalInput> get_physical_inputs ( const RelAlgNode )

Definition at line 216 of file QueryPhysicalInputsCollector.cpp.

Referenced by anonymous_namespace{RelAlgExecutor.cpp}::get_physical_inputs_with_spi_col_id(), anonymous_namespace{RelAlgExecutor.cpp}::prepare_for_system_table_execution(), anonymous_namespace{RelAlgExecutor.cpp}::prepare_string_dictionaries(), and anonymous_namespace{RelAlgExecutor.cpp}::set_parallelism_hints().

216  {
217  RelAlgPhysicalInputsVisitor phys_inputs_visitor;
218  return phys_inputs_visitor.visit(ra);
219 }

+ Here is the caller graph for this function:

std::unordered_set<shared::TableKey> get_physical_table_inputs ( const RelAlgNode )

Definition at line 221 of file QueryPhysicalInputsCollector.cpp.

Referenced by RelAlgExecutor::computeTableGenerations(), RelAlgExecutor::getPhysicalTableIds(), and RelAlgExecutor::setupCaching().

221  {
222  return RelAlgPhysicalTableInputsVisitor::getTableIds(ra);
223 }

+ Here is the caller graph for this function:

std::ostream& operator<< ( std::ostream &  ,
PhysicalInput const &   
)

Definition at line 225 of file QueryPhysicalInputsCollector.cpp.

References PhysicalInput::col_id, PhysicalInput::db_id, and PhysicalInput::table_id.

225  {
226  return os << '(' << physical_input.col_id << ',' << physical_input.table_id << ','
227  << physical_input.db_id << ')';
228 }