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

#include <InputDescriptors.h>

+ Collaboration diagram for InputDescriptor:

Public Member Functions

 InputDescriptor (int32_t db_id, int32_t table_id, int32_t nest_level)
 
bool operator== (const InputDescriptor &that) const
 
const shared::TableKeygetTableKey () const
 
int32_t getNestLevel () const
 
InputSourceType getSourceType () const
 
size_t hash () const
 
std::string toString () const
 

Private Attributes

shared::TableKey table_key_
 
int32_t nest_level_
 

Detailed Description

Definition at line 30 of file InputDescriptors.h.

Constructor & Destructor Documentation

InputDescriptor::InputDescriptor ( int32_t  db_id,
int32_t  table_id,
int32_t  nest_level 
)
inline

Definition at line 32 of file InputDescriptors.h.

33  : table_key_(db_id, table_id), nest_level_(nest_level) {}
shared::TableKey table_key_

Member Function Documentation

int32_t InputDescriptor::getNestLevel ( ) const
inline

Definition at line 41 of file InputDescriptors.h.

References nest_level_.

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

41 { return nest_level_; }

+ Here is the caller graph for this function:

InputSourceType InputDescriptor::getSourceType ( ) const

Definition at line 21 of file InputDescriptors.cpp.

References RESULT, TABLE, shared::TableKey::table_id, and table_key_.

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

+ Here is the caller graph for this function:

const shared::TableKey& InputDescriptor::getTableKey ( ) const
inline
size_t InputDescriptor::hash ( ) const

Definition at line 25 of file InputDescriptors.cpp.

References shared::TableKey::hash(), nest_level_, and table_key_.

Referenced by InputColDescriptor::hash().

25  {
26  auto hash = table_key_.hash();
27  boost::hash_combine(hash, nest_level_);
28  return hash;
29 }
shared::TableKey table_key_
size_t hash() const
size_t hash() const

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 35 of file InputDescriptors.h.

References nest_level_, and table_key_.

35  {
36  return table_key_ == that.table_key_ && nest_level_ == that.nest_level_;
37  }
shared::TableKey table_key_
std::string InputDescriptor::toString ( ) const

Definition at line 31 of file InputDescriptors.cpp.

References shared::TableKey::db_id, nest_level_, shared::TableKey::table_id, table_key_, to_string(), and typeName().

31  {
32  return ::typeName(this) + "(db_id=" + std::to_string(table_key_.db_id) +
33  ", table_id=" + std::to_string(table_key_.table_id) +
34  ", nest_level=" + std::to_string(nest_level_) + ")";
35 }
std::string to_string(char const *&&v)
shared::TableKey table_key_
std::string typeName(const T *v)
Definition: toString.h:106

+ Here is the call graph for this function:

Member Data Documentation

int32_t InputDescriptor::nest_level_
private

Definition at line 51 of file InputDescriptors.h.

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

shared::TableKey InputDescriptor::table_key_
private

Definition at line 50 of file InputDescriptors.h.

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


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