OmniSciDB
a667adc9c8
|
#include <ForeignTableSchema.h>
Public Member Functions | |
ForeignTableSchema (const int32_t db_id, const ForeignTable *foreign_table) | |
const ColumnDescriptor * | getColumnDescriptor (const int column_id) const |
const ColumnDescriptor * | getLogicalColumn (const int column_id) const |
int | getParquetColumnIndex (const int column_id) const |
const std::list< const ColumnDescriptor * > & | getLogicalAndPhysicalColumns () const |
int | numLogicalAndPhysicalColumns () const |
const std::list< const ColumnDescriptor * > & | getLogicalColumns () const |
int | numLogicalColumns () const |
const ForeignTable * | getForeignTable () const |
Private Member Functions | |
std::vector< int >::const_iterator | getLogicalColumnIdIterator (const int column_id) const |
Private Attributes | |
std::list< const ColumnDescriptor * > | logical_and_physical_columns_ |
std::list< const ColumnDescriptor * > | logical_columns_ |
std::vector< int > | logical_column_ids_ |
const ForeignTable * | foreign_table_ |
std::shared_ptr < Catalog_Namespace::Catalog > | catalog_ |
Definition at line 22 of file ForeignTableSchema.h.
|
inline |
Definition at line 24 of file ForeignTableSchema.h.
References catalog_, CHECK, foreign_table_, Catalog_Namespace::SysCatalog::getCatalog(), Catalog_Namespace::SysCatalog::instance(), logical_and_physical_columns_, logical_column_ids_, logical_columns_, and TableDescriptor::tableId.
|
inline |
Gets a pointer to the column descriptor object for the given column id.
Definition at line 41 of file ForeignTableSchema.h.
References catalog_, CHECK, foreign_table_, and TableDescriptor::tableId.
Referenced by getLogicalColumn(), foreign_storage::anonymous_namespace{LazyParquetChunkLoader.cpp}::metadata_scan_rowgroup_interval(), and foreign_storage::anonymous_namespace{LazyParquetChunkLoader.cpp}::populate_encoder_map().
|
inline |
Gets a pointer to the foreign table object.
Definition at line 99 of file ForeignTableSchema.h.
References foreign_table_.
Referenced by foreign_storage::anonymous_namespace{LazyParquetChunkLoader.cpp}::validate_column_mapping_and_row_group_metadata().
|
inline |
Gets all the logical and physical columns for the foreign table.
Definition at line 73 of file ForeignTableSchema.h.
References logical_and_physical_columns_.
Referenced by foreign_storage::anonymous_namespace{LazyParquetChunkLoader.cpp}::metadata_scan_rowgroup_interval(), and foreign_storage::LazyParquetChunkLoader::metadataScan().
|
inline |
Gets the logical column that is associated with the given column id. Given column id can be for a physical column or logical column (in this case, the column descriptor for the same column is returned)
Definition at line 53 of file ForeignTableSchema.h.
References CHECK_LE, getColumnDescriptor(), and getLogicalColumnIdIterator().
Referenced by foreign_storage::anonymous_namespace{LazyParquetChunkLoader.cpp}::metadata_scan_rowgroup_interval().
|
inlineprivate |
Definition at line 102 of file ForeignTableSchema.h.
References CHECK, logical_column_ids_, and gpu_enabled::upper_bound().
Referenced by getLogicalColumn(), and getParquetColumnIndex().
|
inline |
Gets all the logical columns for the foreign table.
Definition at line 87 of file ForeignTableSchema.h.
References logical_columns_.
Referenced by foreign_storage::anonymous_namespace{LazyParquetChunkLoader.cpp}::validate_column_mapping_and_row_group_metadata().
|
inline |
Gets the Parquet column index that corresponds to the given column id.
Definition at line 63 of file ForeignTableSchema.h.
References CHECK_GE, getLogicalColumnIdIterator(), and logical_column_ids_.
Referenced by foreign_storage::anonymous_namespace{LazyParquetChunkLoader.cpp}::metadata_scan_rowgroup_interval(), and foreign_storage::anonymous_namespace{LazyParquetChunkLoader.cpp}::populate_encoder_map().
|
inline |
Gets the total number of logical and physical columns for the foreign table.
Definition at line 80 of file ForeignTableSchema.h.
References logical_and_physical_columns_.
|
inline |
Gets the total number of logical columns for the foreign table.
Definition at line 94 of file ForeignTableSchema.h.
References logical_columns_.
Referenced by foreign_storage::anonymous_namespace{LazyParquetChunkLoader.cpp}::validate_number_of_columns().
|
private |
Definition at line 114 of file ForeignTableSchema.h.
Referenced by ForeignTableSchema(), and getColumnDescriptor().
|
private |
Definition at line 113 of file ForeignTableSchema.h.
Referenced by ForeignTableSchema(), getColumnDescriptor(), and getForeignTable().
|
private |
Definition at line 110 of file ForeignTableSchema.h.
Referenced by ForeignTableSchema(), getLogicalAndPhysicalColumns(), and numLogicalAndPhysicalColumns().
|
private |
Definition at line 112 of file ForeignTableSchema.h.
Referenced by ForeignTableSchema(), getLogicalColumnIdIterator(), and getParquetColumnIndex().
|
private |
Definition at line 111 of file ForeignTableSchema.h.
Referenced by ForeignTableSchema(), getLogicalColumns(), and numLogicalColumns().