OmniSciDB
a5dc49c757
|
#include <RangeTableEntry.h>
Public Member Functions | |
RangeTableEntry (const std::string &r, const TableDescriptor *t, Query *v) | |
virtual | ~RangeTableEntry () |
const ColumnDescriptor * | get_column_desc (const Catalog_Namespace::Catalog &catalog, const std::string &name) |
const std::list< const ColumnDescriptor * > & | get_column_descs () const |
const std::string & | get_rangevar () const |
int32_t | get_table_id () const |
const std::string & | get_table_name () const |
const TableDescriptor * | get_table_desc () const |
const Query * | get_view_query () const |
void | expand_star_in_targetlist (const Catalog_Namespace::Catalog &catalog, std::vector< std::shared_ptr< TargetEntry >> &tlist, int rte_idx) |
void | add_all_column_descs (const Catalog_Namespace::Catalog &catalog) |
Private Attributes | |
std::string | rangevar |
const TableDescriptor * | table_desc |
std::list< const ColumnDescriptor * > | column_descs |
Query * | view_query |
Definition at line 31 of file RangeTableEntry.h.
|
inline |
Definition at line 33 of file RangeTableEntry.h.
|
virtual |
void Analyzer::RangeTableEntry::add_all_column_descs | ( | const Catalog_Namespace::Catalog & | catalog | ) |
Definition at line 45 of file RangeTableEntry.cpp.
References column_descs, Catalog_Namespace::Catalog::getAllColumnMetadataForTable(), table_desc, and TableDescriptor::tableId.
void Analyzer::RangeTableEntry::expand_star_in_targetlist | ( | const Catalog_Namespace::Catalog & | catalog, |
std::vector< std::shared_ptr< TargetEntry >> & | tlist, | ||
int | rte_idx | ||
) |
Definition at line 50 of file RangeTableEntry.cpp.
References column_descs, Catalog_Namespace::Catalog::getAllColumnMetadataForTable(), Catalog_Namespace::Catalog::getDatabaseId(), table_desc, and TableDescriptor::tableId.
Referenced by Parser::QuerySpec::analyze_select_clause().
const ColumnDescriptor * Analyzer::RangeTableEntry::get_column_desc | ( | const Catalog_Namespace::Catalog & | catalog, |
const std::string & | name | ||
) |
Definition at line 67 of file RangeTableEntry.cpp.
References column_descs, Catalog_Namespace::Catalog::getMetadataForColumn(), table_desc, and TableDescriptor::tableId.
Referenced by Parser::ColumnRef::analyze().
const std::list< const ColumnDescriptor * > & Analyzer::RangeTableEntry::get_column_descs | ( | ) | const |
Definition at line 29 of file RangeTableEntry.cpp.
References column_descs.
|
inline |
const TableDescriptor * Analyzer::RangeTableEntry::get_table_desc | ( | ) | const |
Definition at line 41 of file RangeTableEntry.cpp.
References table_desc.
int32_t Analyzer::RangeTableEntry::get_table_id | ( | ) | const |
Definition at line 33 of file RangeTableEntry.cpp.
References table_desc, and TableDescriptor::tableId.
Referenced by Parser::ColumnRef::analyze().
const std::string & Analyzer::RangeTableEntry::get_table_name | ( | ) | const |
Definition at line 37 of file RangeTableEntry.cpp.
References table_desc, and TableDescriptor::tableName.
|
inline |
|
private |
Definition at line 59 of file RangeTableEntry.h.
Referenced by add_all_column_descs(), expand_star_in_targetlist(), get_column_desc(), and get_column_descs().
|
private |
Definition at line 56 of file RangeTableEntry.h.
Referenced by get_rangevar().
|
private |
Definition at line 57 of file RangeTableEntry.h.
Referenced by add_all_column_descs(), expand_star_in_targetlist(), get_column_desc(), get_table_desc(), get_table_id(), and get_table_name().
|
private |
Definition at line 60 of file RangeTableEntry.h.
Referenced by get_view_query(), and ~RangeTableEntry().