OmniSciDB  ca0c39ec8f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
InputDescriptor Class Reference

#include <InputDescriptors.h>

Public Member Functions

 InputDescriptor (const int table_id, const int nest_level)
 
bool operator== (const InputDescriptor &that) const
 
int getTableId () const
 
int getNestLevel () const
 
InputSourceType getSourceType () const
 
size_t hash () const
 
std::string toString () const
 

Private Attributes

int table_id_
 
int nest_level_
 

Detailed Description

Definition at line 28 of file InputDescriptors.h.

Constructor & Destructor Documentation

InputDescriptor::InputDescriptor ( const int  table_id,
const int  nest_level 
)
inline

Definition at line 30 of file InputDescriptors.h.

31  : table_id_(table_id), nest_level_(nest_level) {}

Member Function Documentation

int InputDescriptor::getNestLevel ( ) const
inline

Definition at line 39 of file InputDescriptors.h.

References nest_level_.

Referenced by PlanState::isLazyFetchColumn(), Executor::needFetchAllFragments(), and Executor::needLinearizeAllFragments().

39 { return nest_level_; }

+ Here is the caller graph for this function:

InputSourceType InputDescriptor::getSourceType ( ) const
inline

Definition at line 41 of file InputDescriptors.h.

References RESULT, TABLE, and table_id_.

Referenced by anonymous_namespace{Execute.cpp}::get_table_name(), ColumnFetcher::getAllTableColumnFragments(), ColumnFetcher::linearizeColumnFragments(), and Executor::needFetchAllFragments().

+ Here is the caller graph for this function:

int InputDescriptor::getTableId ( ) const
inline
size_t InputDescriptor::hash ( ) const
inline

Definition at line 45 of file InputDescriptors.h.

References nest_level_, and table_id_.

Referenced by InputColDescriptor::hash().

45  {
46  static_assert(sizeof(table_id_) + sizeof(nest_level_) <= sizeof(size_t));
47  return static_cast<size_t>(table_id_) << 8 * sizeof(nest_level_) |
48  static_cast<size_t>(nest_level_);
49  }

+ Here is the caller graph for this function:

bool InputDescriptor::operator== ( const InputDescriptor that) const
inline

Definition at line 33 of file InputDescriptors.h.

References nest_level_, and table_id_.

33  {
34  return table_id_ == that.table_id_ && nest_level_ == that.nest_level_;
35  }
std::string InputDescriptor::toString ( ) const
inline

Definition at line 51 of file InputDescriptors.h.

References nest_level_, table_id_, to_string(), and typeName().

51  {
52  return ::typeName(this) + "(table_id=" + std::to_string(table_id_) +
53  ", nest_level=" + std::to_string(nest_level_) + ")";
54  }
std::string to_string(char const *&&v)
std::string typeName(const T *v)
Definition: toString.h:103

+ Here is the call graph for this function:

Member Data Documentation

int InputDescriptor::nest_level_
private

Definition at line 58 of file InputDescriptors.h.

Referenced by getNestLevel(), hash(), operator==(), and toString().

int InputDescriptor::table_id_
private

Definition at line 57 of file InputDescriptors.h.

Referenced by getSourceType(), getTableId(), hash(), operator==(), and toString().


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