OmniSciDB  2e3a973ef4
TableDescriptor Struct Reference

specifies the content in-memory of a row in the table metadata table More...

#include <TableDescriptor.h>

+ Inheritance diagram for TableDescriptor:
+ Collaboration diagram for TableDescriptor:

Public Member Functions

 TableDescriptor ()
 
virtual ~TableDescriptor ()=default
 

Public Attributes

int32_t tableId
 
int32_t shard
 
std::string tableName
 
int32_t userId
 
int32_t nColumns
 
bool isView
 
std::string viewSQL
 
std::string fragments
 
Fragmenter_Namespace::FragmenterType fragType
 
int32_t maxFragRows
 
int64_t maxChunkSize
 
int32_t fragPageSize
 
int64_t maxRows
 
std::string partitions
 
std::string keyMetainfo
 
std::shared_ptr< Fragmenter_Namespace::AbstractFragmenterfragmenter
 
int32_t nShards
 
int shardedColumnId
 
int sortedColumnId
 
Data_Namespace::MemoryLevel persistenceLevel
 
bool hasDeletedCol
 
std::vector< int > columnIdBySpi_
 
std::string storageType
 
std::shared_ptr< std::mutex > mutex_
 

Detailed Description

specifies the content in-memory of a row in the table metadata table

TableDescriptor

Definition at line 42 of file TableDescriptor.h.

Constructor & Destructor Documentation

◆ TableDescriptor()

TableDescriptor::TableDescriptor ( )
inline

Definition at line 79 of file TableDescriptor.h.

80  : tableId(-1)
81  , shard(-1)
82  , nShards(0)
83  , shardedColumnId(0)
84  , sortedColumnId(0)
86  , hasDeletedCol(true)
87  , mutex_(std::make_shared<std::mutex>()) {}
std::shared_ptr< std::mutex > mutex_
Data_Namespace::MemoryLevel persistenceLevel

◆ ~TableDescriptor()

virtual TableDescriptor::~TableDescriptor ( )
virtualdefault

Member Data Documentation

◆ columnIdBySpi_

std::vector<int> TableDescriptor::columnIdBySpi_

◆ fragmenter

◆ fragments

std::string TableDescriptor::fragments

◆ fragPageSize

◆ fragType

◆ hasDeletedCol

◆ isView

◆ keyMetainfo

◆ maxChunkSize

◆ maxFragRows

◆ maxRows

◆ mutex_

◆ nColumns

◆ nShards

◆ partitions

◆ persistenceLevel

◆ shard

◆ shardedColumnId

◆ sortedColumnId

◆ storageType

◆ tableId

int32_t TableDescriptor::tableId

tableId starts at 0 for valid tables.

Definition at line 43 of file TableDescriptor.h.

Referenced by lockmgr::TableDataLockContainer< WriteLock >::acquire(), lockmgr::TableDataLockContainer< ReadLock >::acquire(), lockmgr::TableInsertLockContainer< WriteLock >::acquire(), lockmgr::TableInsertLockContainer< ReadLock >::acquire(), Analyzer::RangeTableEntry::add_all_column_descs(), Catalog_Namespace::Catalog::addColumn(), Catalog_Namespace::Catalog::addTableToMap(), Parser::InsertStmt::analyze(), Catalog_Namespace::Catalog::buildMaps(), Parser::AddColumnStmt::check_executable(), Catalog_Namespace::Catalog::checkMetadataForDeletedRecs(), checkPermissionForTables(), compare_td_id(), Catalog_Namespace::Catalog::createShardedTable(), Catalog_Namespace::Catalog::createTable(), Parser::InsertValuesStmt::determineLeafIndex(), Catalog_Namespace::Catalog::doTruncateTable(), Catalog_Namespace::Catalog::dropColumn(), Catalog_Namespace::Catalog::dropFsiSchemasAndTables(), Catalog_Namespace::Catalog::dropTable(), Catalog_Namespace::Catalog::dumpCreateTable(), Catalog_Namespace::Catalog::dumpSchema(), TableArchiver::dumpTable(), Catalog_Namespace::Catalog::eraseTablePhysicalData(), Catalog_Namespace::Catalog::executeDropTableSqliteQueries(), Analyzer::RangeTableEntry::expand_star_in_targetlist(), foreign_storage::ForeignTableSchema::ForeignTableSchema(), Fragmenter_Namespace::get_chunks(), Analyzer::RangeTableEntry::get_column_desc(), Analyzer::RangeTableEntry::get_table_id(), Catalog_Namespace::Catalog::getAllColumnMetadataForTableImpl(), getChunkAccessorTable(), foreign_storage::ParquetDataWrapper::getChunkLoader(), Fragmenter_Namespace::InsertOrderFragmenter::getChunksForAllColumns(), foreign_storage::ForeignTableSchema::getColumnDescriptor(), Catalog_Namespace::Catalog::getDeletedColumnIfRowsDeleted(), foreign_storage::ParquetDataWrapper::getMetadataLoader(), Catalog_Namespace::Catalog::getPhysicalTablesDescriptors(), Catalog_Namespace::Catalog::getShardColumnMetadataForTable(), Catalog_Namespace::Catalog::getTableDictDirectories(), DBHandler::import_geo_table(), foreign_storage::ParquetDataWrapper::initializeChunkBuffers(), Parser::LocalConnector::insertDataToLeaf(), Catalog_Namespace::Catalog::instantiateFragmenter(), foreign_storage::ParquetDataWrapper::loadBuffersUsingLazyParquetChunkLoader(), foreign_storage::CsvDataWrapper::populateChunkBuffers(), foreign_storage::CsvDataWrapper::populateChunkMapForColumns(), foreign_storage::CsvDataWrapper::populateChunkMetadata(), foreign_storage::CsvDataWrapper::populateChunks(), TableOptimizer::recomputeMetadata(), ForeignStorageInterface::registerTable(), Catalog_Namespace::Catalog::renameColumn(), Catalog_Namespace::Catalog::renamePhysicalTable(), Catalog_Namespace::Catalog::renameTable(), TableArchiver::restoreTable(), Catalog_Namespace::Catalog::serializeTableJsonUnlocked(), Catalog_Namespace::Catalog::truncateTable(), Fragmenter_Namespace::InsertOrderFragmenter::updateColumn(), Fragmenter_Namespace::InsertOrderFragmenter::updateColumns(), TableOptimizer::vacuumDeletedRows(), Catalog_Namespace::Catalog::vacuumDeletedRows(), and anonymous_namespace{QueryPhysicalInputsCollector.cpp}::RelAlgPhysicalTableInputsVisitor::visitScan().

◆ tableName

std::string TableDescriptor::tableName

tableName is the name of the table table -must be unique

Definition at line 45 of file TableDescriptor.h.

Referenced by lockmgr::TableDataLockContainer< WriteLock >::acquire(), lockmgr::TableDataLockContainer< ReadLock >::acquire(), lockmgr::TableInsertLockContainer< WriteLock >::acquire(), lockmgr::TableInsertLockContainer< ReadLock >::acquire(), Catalog_Namespace::Catalog::addTableToMap(), Catalog_Namespace::Catalog::buildMaps(), Parser::check_alter_table_privilege(), Catalog_Namespace::Catalog::createShardedTable(), Catalog_Namespace::Catalog::createTable(), Catalog_Namespace::Catalog::doDropTable(), Catalog_Namespace::Catalog::dropTable(), Catalog_Namespace::Catalog::dumpCreateTable(), TableArchiver::dumpTable(), Catalog_Namespace::Catalog::eraseTablePhysicalData(), Parser::CreateTableStmt::execute(), Parser::CreateDataframeStmt::execute(), Parser::CreateTableAsSelectStmt::execute(), Parser::ShowCreateTableStmt::execute(), Parser::CreateViewStmt::execute(), Analyzer::RangeTableEntry::get_table_name(), getChunkAccessorTable(), DBHandler::hasTableAccessPrivileges(), Catalog_Namespace::Catalog::instantiateFragmenter(), foreign_storage::anonymous_namespace{LazyParquetImporter.cpp}::read_parquet_data_into_import_buffer(), TableOptimizer::recomputeMetadata(), Catalog_Namespace::Catalog::renameColumn(), Catalog_Namespace::Catalog::renamePhysicalTable(), TableArchiver::restoreTable(), Catalog_Namespace::Catalog::serializeTableJsonUnlocked(), ddl_utils::set_default_table_attributes(), Catalog_Namespace::Catalog::setColumnDictionary(), Catalog_Namespace::Catalog::setColumnSharedDictionary(), DBHandler::user_can_access_table(), ddl_utils::validate_drop_table_type(), and foreign_storage::anonymous_namespace{LazyParquetImporter.cpp}::validate_parquet_metadata().

◆ userId

◆ viewSQL


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