OmniSciDB
a5dc49c757
|
#include <TableDescriptor.h>
Public Member Functions | |
TableDescriptor () | |
virtual | ~TableDescriptor ()=default |
bool | isForeignTable () const |
bool | isTemporaryTable () const |
std::vector< int > | getTableChunkKey (const int getCurrentDBId) const |
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::AbstractFragmenter > | fragmenter |
int32_t | nShards |
int | shardedColumnId |
int | sortedColumnId |
Data_Namespace::MemoryLevel | persistenceLevel |
bool | hasDeletedCol |
std::vector< int > | columnIdBySpi_ |
std::string | storageType |
int32_t | maxRollbackEpochs |
bool | is_system_table |
bool | is_in_memory_system_table |
std::shared_ptr< std::mutex > | mutex_ |
Definition at line 43 of file TableDescriptor.h.
|
inline |
Definition at line 84 of file TableDescriptor.h.
|
virtualdefault |
|
inline |
Definition at line 105 of file TableDescriptor.h.
References fragmenter, and tableId.
Referenced by Executor::clearExternalCaches().
|
inline |
Definition at line 99 of file TableDescriptor.h.
References StorageType::FOREIGN_TABLE, and storageType.
Referenced by TableArchiver::dumpTable(), anonymous_namespace{DBHandler.cpp}::get_refresh_info(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_table_type(), ShowTableDetailsCommand::getFilteredTableNames(), system_validator::should_validate_epoch(), and QueryPlanDagChecker::visit().
|
inline |
Definition at line 101 of file TableDescriptor.h.
References Data_Namespace::CPU_LEVEL, and persistenceLevel.
Referenced by foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_table_type(), ShowTableDetailsCommand::getFilteredTableNames(), system_validator::should_validate_epoch(), and QueryPlanDagChecker::visit().
std::vector<int> TableDescriptor::columnIdBySpi_ |
Definition at line 74 of file TableDescriptor.h.
Referenced by Catalog_Namespace::Catalog::addTableToMap(), Catalog_Namespace::Catalog::createTable(), and DataframeTableDescriptor::DataframeTableDescriptor().
std::shared_ptr<Fragmenter_Namespace::AbstractFragmenter> TableDescriptor::fragmenter |
Definition at line 63 of file TableDescriptor.h.
Referenced by AlterTableAlterColumnCommand::alterGeoColumnData(), AlterTableAlterColumnCommand::alterNonGeoColumnData(), RelModify::applyUpdateModificationsToInputNode(), Catalog_Namespace::Catalog::buildTablesMapUnlocked(), Catalog_Namespace::Catalog::checkMetadataForDeletedRecs(), DataframeTableDescriptor::DataframeTableDescriptor(), Parser::CreateDataframeStmt::execute(), Parser::CreateTableAsSelectStmt::execute(), Parser::AddColumnStmt::execute(), Parser::CreateViewStmt::execute(), getChunkAccessorTable(), TableOptimizer::getFragmentIndexes(), RelScan::getNumFragments(), Catalog_Namespace::Catalog::getSystemTableSchema(), getTableChunkKey(), Parser::getTableChunkKey(), EmbeddedDatabase::DBEngineImpl::importArrowTable(), Fragmenter_Namespace::LocalInsertConnector::insertChunksToLeaf(), Fragmenter_Namespace::LocalInsertConnector::insertDataToLeaf(), Catalog_Namespace::Catalog::instantiateFragmenter(), import_export::Loader::loadToShard(), TableOptimizer::recomputeColumnMetadata(), TableOptimizer::recomputeDeletedColumnMetadata(), Catalog_Namespace::Catalog::removeTableFromMap(), ddl_utils::set_default_table_attributes(), TableOptimizer::vacuumFragments(), and ScanNodeTableKeyCollector::visit().
std::string TableDescriptor::fragments |
Definition at line 51 of file TableDescriptor.h.
Referenced by Catalog_Namespace::Catalog::buildTablesMapUnlocked(), DataframeTableDescriptor::DataframeTableDescriptor(), Catalog_Namespace::Catalog::getSystemTableSchema(), and CreateForeignTableCommand::setTableDetails().
int32_t TableDescriptor::fragPageSize |
Definition at line 56 of file TableDescriptor.h.
Referenced by Catalog_Namespace::Catalog::buildTablesMapUnlocked(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), Catalog_Namespace::Catalog::dumpCreateTableUnlocked(), Catalog_Namespace::Catalog::dumpSchema(), Parser::CreateDataframeStmt::execute(), Parser::CreateTableAsSelectStmt::execute(), Parser::CreateViewStmt::execute(), Catalog_Namespace::Catalog::getSystemTableSchema(), EmbeddedDatabase::DBEngineImpl::importArrowTable(), Catalog_Namespace::Catalog::instantiateFragmenter(), and ddl_utils::set_default_table_attributes().
Fragmenter_Namespace::FragmenterType TableDescriptor::fragType |
Definition at line 53 of file TableDescriptor.h.
Referenced by Catalog_Namespace::Catalog::buildTablesMapUnlocked(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), Parser::CreateDataframeStmt::execute(), Parser::CreateTableAsSelectStmt::execute(), Parser::CreateViewStmt::execute(), Catalog_Namespace::Catalog::getSystemTableSchema(), EmbeddedDatabase::DBEngineImpl::importArrowTable(), Catalog_Namespace::Catalog::instantiateFragmenter(), and ddl_utils::set_default_table_attributes().
bool TableDescriptor::hasDeletedCol |
Definition at line 70 of file TableDescriptor.h.
Referenced by Catalog_Namespace::Catalog::addTableToMap(), Catalog_Namespace::Catalog::buildTablesMapUnlocked(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), Catalog_Namespace::Catalog::dumpCreateTableUnlocked(), Catalog_Namespace::Catalog::dumpSchema(), Parser::DropColumnStmt::execute(), TableOptimizer::getDeletedColumnStats(), Catalog_Namespace::Catalog::getSystemTableSchema(), AlterTableAlterColumnCommand::populateAndWriteRecoveryInfo(), ArrowForeignStorage::prepareTable(), ArrowCsvForeignStorage::prepareTable(), TableOptimizer::recomputeDeletedColumnMetadata(), Catalog_Namespace::Catalog::reloadTableMetadataUnlocked(), Catalog_Namespace::Catalog::removeTableFromMap(), TableArchiver::restoreTable(), CreateForeignTableCommand::setTableDetails(), and anonymous_namespace{DdlCommandExecutor.cpp}::vacuum_table_if_required().
bool TableDescriptor::is_in_memory_system_table |
Definition at line 79 of file TableDescriptor.h.
Referenced by anonymous_namespace{DBHandler.cpp}::check_and_reset_in_memory_system_table(), Catalog_Namespace::Catalog::getSystemTableSchema(), foreign_storage::anonymous_namespace{CachingForeignStorageMgr.cpp}::is_in_memory_system_table_chunk_key(), and Catalog_Namespace::Catalog::reloadForeignTableUnlocked().
bool TableDescriptor::is_system_table |
Definition at line 78 of file TableDescriptor.h.
Referenced by Catalog_Namespace::Catalog::buildTablesMapUnlocked(), Catalog_Namespace::Catalog::createTable(), Catalog_Namespace::Catalog::dumpCreateTableUnlocked(), Catalog_Namespace::Catalog::dumpSchema(), TableArchiver::dumpTable(), Catalog_Namespace::Catalog::getSystemTableSchema(), foreign_storage::is_system_table_chunk_key(), Catalog_Namespace::Catalog::reloadForeignTableUnlocked(), and QueryPlanDagChecker::visit().
bool TableDescriptor::isView |
Definition at line 49 of file TableDescriptor.h.
Referenced by Parser::InsertStmt::analyze(), Catalog_Namespace::Catalog::buildTablesMapUnlocked(), Parser::AddColumnStmt::check_executable(), anonymous_namespace{Calcite.cpp}::checkPermissionForTables(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), Catalog_Namespace::Catalog::dropTable(), Catalog_Namespace::Catalog::dumpCreateTableUnlocked(), TableArchiver::dumpTable(), Catalog_Namespace::Catalog::eraseTablePhysicalData(), ShowCreateTableCommand::execute(), Parser::CreateDataframeStmt::execute(), Parser::CreateTableAsSelectStmt::execute(), Parser::TruncateTableStmt::execute(), Parser::OptimizeTableStmt::execute(), Parser::DropColumnStmt::execute(), Parser::AlterTableParamStmt::execute(), Parser::CreateViewStmt::execute(), Catalog_Namespace::Catalog::executeDropTableSqliteQueries(), Catalog_Namespace::Catalog::filterTableByTypeAndUser(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_table_type(), Catalog_Namespace::Catalog::getSystemTableSchema(), DBHandler::hasTableAccessPrivileges(), EmbeddedDatabase::DBEngineImpl::importArrowTable(), Parser::InsertIntoTableAsSelectStmt::populateData(), TableArchiver::restoreTable(), ddl_utils::set_default_table_attributes(), system_validator::should_validate_epoch(), ddl_utils::validate_table_type(), and Parser::verifyObject().
std::string TableDescriptor::keyMetainfo |
Definition at line 60 of file TableDescriptor.h.
Referenced by Catalog_Namespace::Catalog::buildTablesMapUnlocked(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), Parser::CreateDataframeStmt::execute(), Parser::CreateTableAsSelectStmt::execute(), Parser::CreateTableStmt::executeDryRun(), Catalog_Namespace::Catalog::getSystemTableSchema(), EmbeddedDatabase::DBEngineImpl::importArrowTable(), and CreateForeignTableCommand::setTableDetails().
int64_t TableDescriptor::maxChunkSize |
Definition at line 55 of file TableDescriptor.h.
Referenced by Catalog_Namespace::Catalog::buildTablesMapUnlocked(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), Catalog_Namespace::Catalog::dumpCreateTableUnlocked(), Catalog_Namespace::Catalog::dumpSchema(), Parser::CreateDataframeStmt::execute(), Parser::CreateTableAsSelectStmt::execute(), Parser::CreateViewStmt::execute(), Catalog_Namespace::Catalog::getSystemTableSchema(), EmbeddedDatabase::DBEngineImpl::importArrowTable(), Catalog_Namespace::Catalog::instantiateFragmenter(), and ddl_utils::set_default_table_attributes().
int32_t TableDescriptor::maxFragRows |
Definition at line 54 of file TableDescriptor.h.
Referenced by foreign_storage::anonymous_namespace{AbstractTextFileDataWrapper.cpp}::add_placeholder_metadata(), anonymous_namespace{DdlCommandExecutor.cpp}::add_table_details(), Catalog_Namespace::Catalog::buildTablesMapUnlocked(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), foreign_storage::dispatch_scan_requests(), Catalog_Namespace::Catalog::dumpCreateTableUnlocked(), Catalog_Namespace::Catalog::dumpSchema(), Parser::CreateDataframeStmt::execute(), Parser::CreateTableAsSelectStmt::execute(), Parser::CreateViewStmt::execute(), Catalog_Namespace::Catalog::getSystemTableSchema(), EmbeddedDatabase::DBEngineImpl::importArrowTable(), Catalog_Namespace::Catalog::instantiateFragmenter(), anonymous_namespace{ForeignDataImporter.cpp}::metadata_scan(), foreign_storage::ParquetDataWrapper::moveToNextFragment(), ArrowForeignStorageBase::parseArrowTable(), foreign_storage::InternalSystemDataWrapper::populateChunkMetadata(), and ddl_utils::set_default_table_attributes().
int32_t TableDescriptor::maxRollbackEpochs |
Definition at line 77 of file TableDescriptor.h.
Referenced by anonymous_namespace{DdlCommandExecutor.cpp}::add_table_details(), Catalog_Namespace::Catalog::alterPhysicalTableMetadata(), Catalog_Namespace::Catalog::buildTablesMapUnlocked(), Fragmenter_Namespace::InsertOrderFragmenter::conditionallyInstantiateFileMgrWithParams(), Catalog_Namespace::Catalog::createTable(), Catalog_Namespace::Catalog::dumpCreateTableUnlocked(), Catalog_Namespace::Catalog::dumpSchema(), Parser::CreateTableAsSelectStmt::execute(), and TableDescriptorUpdateParams::operator==().
int64_t TableDescriptor::maxRows |
Definition at line 57 of file TableDescriptor.h.
Referenced by anonymous_namespace{DdlCommandExecutor.cpp}::add_table_details(), Catalog_Namespace::Catalog::alterPhysicalTableMetadata(), Catalog_Namespace::Catalog::buildTablesMapUnlocked(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), Catalog_Namespace::Catalog::dumpCreateTableUnlocked(), Catalog_Namespace::Catalog::dumpSchema(), Parser::CreateDataframeStmt::execute(), Parser::CreateTableAsSelectStmt::execute(), Parser::CreateViewStmt::execute(), Catalog_Namespace::Catalog::getSystemTableSchema(), EmbeddedDatabase::DBEngineImpl::importArrowTable(), Catalog_Namespace::Catalog::instantiateFragmenter(), TableDescriptorUpdateParams::operator==(), and ddl_utils::set_default_table_attributes().
std::shared_ptr<std::mutex> TableDescriptor::mutex_ |
Definition at line 82 of file TableDescriptor.h.
Referenced by Catalog_Namespace::Catalog::addTableToMap(), and DataframeTableDescriptor::DataframeTableDescriptor().
int32_t TableDescriptor::nColumns |
Definition at line 48 of file TableDescriptor.h.
Referenced by anonymous_namespace{DdlCommandExecutor.cpp}::add_table_details(), Catalog_Namespace::Catalog::buildTablesMapUnlocked(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), Parser::CreateDataframeStmt::execute(), Parser::CreateTableAsSelectStmt::execute(), Parser::DropColumnStmt::execute(), Parser::CreateViewStmt::execute(), Fragmenter_Namespace::get_chunks(), Fragmenter_Namespace::InsertOrderFragmenter::getChunksForAllColumns(), Catalog_Namespace::Catalog::getSystemTableSchema(), Catalog_Namespace::Catalog::refreshDictionaryCachesForTableUnlocked(), Catalog_Namespace::Catalog::reloadTableMetadataUnlocked(), and ddl_utils::set_default_table_attributes().
int32_t TableDescriptor::nShards |
Definition at line 66 of file TableDescriptor.h.
Referenced by anonymous_namespace{DdlCommandExecutor.cpp}::add_table_details(), Catalog_Namespace::Catalog::addColumn(), Catalog_Namespace::Catalog::addColumnNontransactional(), RelModify::applyUpdateModificationsToInputNode(), Catalog_Namespace::Catalog::buildTablesMapUnlocked(), anonymous_namespace{DBHandler.cpp}::check_table_not_sharded(), Catalog_Namespace::Catalog::createShardedTable(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), Catalog_Namespace::Catalog::dropColumn(), Catalog_Namespace::Catalog::dropColumnNontransactional(), Catalog_Namespace::Catalog::dropColumnPolicies(), import_export::Loader::dropColumns(), Catalog_Namespace::Catalog::dumpCreateTableUnlocked(), Catalog_Namespace::Catalog::dumpSchema(), Parser::AddColumnStmt::execute(), Parser::DropColumnStmt::execute(), Parser::CreateTableStmt::executeDryRun(), Catalog_Namespace::Catalog::gatherAdditionalInfo(), anonymous_namespace{DdlCommandExecutor.cpp}::get_agg_storage_stats(), RelScan::getNumShards(), import_export::Loader::loadImpl(), TableOptimizer::recomputeMetadata(), TableArchiver::restoreTable(), GroupByAndAggregate::shard_count_for_top_groups(), and anonymous_namespace{DdlCommandExecutor.cpp}::validate_alter_type_metadata().
std::string TableDescriptor::partitions |
Definition at line 58 of file TableDescriptor.h.
Referenced by Catalog_Namespace::Catalog::buildTablesMapUnlocked(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), Catalog_Namespace::Catalog::dumpCreateTableUnlocked(), Catalog_Namespace::Catalog::dumpSchema(), Catalog_Namespace::Catalog::getSystemTableSchema(), CreateForeignTableCommand::setTableDetails(), and table_is_replicated().
Data_Namespace::MemoryLevel TableDescriptor::persistenceLevel |
Definition at line 69 of file TableDescriptor.h.
Referenced by UpdelRoll::cancelUpdate(), UpdelRoll::commitUpdate(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), Catalog_Namespace::Catalog::dumpCreateTableUnlocked(), TableArchiver::dumpTable(), Parser::CreateDataframeStmt::execute(), Parser::CreateTableAsSelectStmt::execute(), Parser::DropColumnStmt::execute(), Parser::CreateTableStmt::executeDryRun(), import_export::ForeignDataImporter::finalize(), StorageIOFacility::TransactionParameters::finalizeTransaction(), EmbeddedDatabase::DBEngineImpl::importArrowTable(), Catalog_Namespace::Catalog::instantiateFragmenter(), isTemporaryTable(), Catalog_Namespace::Catalog::removeTableFromMap(), TableArchiver::restoreTable(), table_is_temporary(), and TableOptimizer::vacuumFragmentsAboveMinSelectivity().
int32_t TableDescriptor::shard |
Definition at line 45 of file TableDescriptor.h.
Referenced by Catalog_Namespace::Catalog::addColumn(), Catalog_Namespace::Catalog::addColumnNontransactional(), Catalog_Namespace::Catalog::buildTablesMapUnlocked(), Catalog_Namespace::Catalog::createShardedTable(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), Catalog_Namespace::Catalog::dropColumn(), Catalog_Namespace::Catalog::dropColumnNontransactional(), Catalog_Namespace::Catalog::dropColumnPolicies(), Catalog_Namespace::Catalog::filterTableByTypeAndUser(), Catalog_Namespace::Catalog::instantiateFragmenter(), and system_validator::should_validate_epoch().
int TableDescriptor::shardedColumnId |
Definition at line 67 of file TableDescriptor.h.
Referenced by Catalog_Namespace::Catalog::buildTablesMapUnlocked(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), import_export::Loader::distributeToShards(), import_export::Loader::distributeToShardsExistingColumns(), Catalog_Namespace::Catalog::dumpCreateTableUnlocked(), Catalog_Namespace::Catalog::dumpSchema(), Parser::DropColumnStmt::execute(), Parser::CreateTableStmt::executeDryRun(), Catalog_Namespace::Catalog::gatherAdditionalInfo(), and Catalog_Namespace::Catalog::getShardColumnMetadataForTable().
int TableDescriptor::sortedColumnId |
Definition at line 68 of file TableDescriptor.h.
Referenced by Catalog_Namespace::Catalog::buildTablesMapUnlocked(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), Catalog_Namespace::Catalog::dumpCreateTableUnlocked(), Catalog_Namespace::Catalog::dumpSchema(), and Catalog_Namespace::Catalog::instantiateFragmenter().
std::string TableDescriptor::storageType |
Definition at line 75 of file TableDescriptor.h.
Referenced by Catalog_Namespace::Catalog::buildTablesMapUnlocked(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), Parser::anonymous_namespace{ParserNode.cpp}::disable_foreign_tables(), Parser::CreateDataframeStmt::execute(), Catalog_Namespace::Catalog::executeDropTableSqliteQueries(), Catalog_Namespace::Catalog::getSystemTableSchema(), EmbeddedDatabase::DBEngineImpl::importArrowTable(), Catalog_Namespace::Catalog::instantiateFragmenter(), isForeignTable(), ForeignStorageInterface::prepareTable(), ForeignStorageInterface::registerTable(), CreateForeignTableCommand::setTableDetails(), foreign_storage::validate_non_foreign_table_write(), and ddl_utils::validate_table_type().
int32_t TableDescriptor::tableId |
tableId starts at 0 for valid tables.
Definition at line 44 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(), foreign_storage::anonymous_namespace{AbstractTextFileDataWrapper.cpp}::add_placeholder_metadata(), anonymous_namespace{DdlCommandExecutor.cpp}::add_table_details(), Catalog_Namespace::Catalog::addColumn(), Catalog_Namespace::Catalog::addColumnNontransactional(), Catalog_Namespace::Catalog::addTableToMap(), AlterTableAlterColumnCommand::alterColumnTypes(), Catalog_Namespace::Catalog::alterPhysicalTableMetadata(), Catalog_Namespace::Catalog::alterTableMetadata(), Parser::InsertStmt::analyze(), RelModify::applyUpdateModificationsToInputNode(), Catalog_Namespace::Catalog::buildTablesMapUnlocked(), anonymous_namespace{DBHandler.cpp}::check_and_reset_in_memory_system_table(), Parser::AddColumnStmt::check_executable(), anonymous_namespace{Calcite.cpp}::checkPermissionForTables(), AlterTableAlterColumnCommandRecoveryMgr::checkpoint(), AlterTableAlterColumnCommandRecoveryMgr::cleanup(), AlterTableAlterColumnCommandRecoveryMgr::cleanupClearRemainingChunks(), AlterTableAlterColumnCommandRecoveryMgr::cleanupDropSourceGeoColumns(), AlterTableAlterColumnCommand::cleanupRecoveryInfo(), Executor::clearExternalCaches(), AlterTableAlterColumnCommand::clearInMemoryData(), AlterTableAlterColumnCommand::collectExpectedCatalogChanges(), UpdelRoll::commitUpdate(), compare_td_id(), anonymous_namespace{ForeignDataImporter.cpp}::create_fragment_buffers(), Catalog_Namespace::Catalog::createShardedTable(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), Catalog_Namespace::Catalog::deleteTableCatalogMetadata(), Catalog_Namespace::Catalog::doTruncateTable(), Catalog_Namespace::Catalog::dropColumn(), Catalog_Namespace::Catalog::dropColumnNontransactional(), Catalog_Namespace::Catalog::dropTable(), Catalog_Namespace::Catalog::dumpCreateTableUnlocked(), Catalog_Namespace::Catalog::dumpSchema(), TableArchiver::dumpTable(), Catalog_Namespace::Catalog::eraseTableMetadata(), Catalog_Namespace::Catalog::eraseTablePhysicalData(), Parser::RenameColumnStmt::execute(), Parser::AddColumnStmt::execute(), Parser::DropColumnStmt::execute(), Parser::AlterTableParamStmt::execute(), Catalog_Namespace::Catalog::executeDropTableSqliteQueries(), Executor::executeUpdate(), Analyzer::RangeTableEntry::expand_star_in_targetlist(), import_export::ForeignDataImporter::finalize(), StorageIOFacility::TransactionParameters::finalizeTransaction(), foreign_storage::ForeignTable::ForeignTable(), foreign_storage::ForeignTableSchema::ForeignTableSchema(), Catalog_Namespace::Catalog::gatherAdditionalInfo(), anonymous_namespace{DdlCommandExecutor.cpp}::get_agg_storage_stats(), anonymous_namespace{DdlCommandExecutor.cpp}::get_alter_column_src_dst_cds(), Fragmenter_Namespace::get_chunks(), Analyzer::RangeTableEntry::get_column_desc(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_table_ddl(), Analyzer::RangeTableEntry::get_table_id(), Catalog_Namespace::Catalog::getAllColumnMetadataForTableImpl(), getChunkAccessorTable(), Fragmenter_Namespace::InsertOrderFragmenter::getChunksForAllColumns(), foreign_storage::ForeignTableSchema::getColumnDescriptor(), TableOptimizer::getDeletedColumnStats(), Catalog_Namespace::Catalog::getNextAddedColumnId(), Catalog_Namespace::Catalog::getPhysicalTablesDescriptors(), Catalog_Namespace::Catalog::getShardColumnMetadataForTable(), getTableChunkKey(), Parser::getTableChunkKey(), Catalog_Namespace::Catalog::getTableDictDirectories(), hash_value(), import_export::ForeignDataImporter::importGeneral(), import_export::Loader::init(), foreign_storage::ParquetDataWrapper::initializeChunkBuffers(), Catalog_Namespace::Catalog::instantiateFragmenter(), foreign_storage::AbstractTextFileDataWrapper::iterativeFileScan(), anonymous_namespace{ForeignDataImporter.cpp}::load_foreign_data_buffers(), foreign_storage::ParquetDataWrapper::loadBuffersUsingLazyParquetChunkLoader(), AlterTableAlterColumnCommand::populateAndWriteRecoveryInfo(), foreign_storage::ParquetDataWrapper::populateChunkBuffers(), foreign_storage::AbstractTextFileDataWrapper::populateChunkBuffers(), foreign_storage::AbstractTextFileDataWrapper::populateChunkMapForColumns(), foreign_storage::InternalSystemDataWrapper::populateChunkMetadata(), foreign_storage::AbstractTextFileDataWrapper::populateChunkMetadata(), Parser::InsertIntoTableAsSelectStmt::populateData(), foreign_storage::ParquetImportBatchResult::populateInsertData(), TableOptimizer::recomputeColumnMetadata(), TableOptimizer::recomputeMetadata(), foreign_storage::refresh_foreign_table_unlocked(), Catalog_Namespace::Catalog::refreshDictionaryCachesForTableUnlocked(), foreign_storage::LogFileBufferParser::regexMatchColumns(), ForeignStorageInterface::registerTable(), Catalog_Namespace::Catalog::reloadForeignTableUnlocked(), AlterForeignTableCommand::renameColumn(), Catalog_Namespace::Catalog::renameColumn(), Catalog_Namespace::Catalog::renamePhysicalTable(), Catalog_Namespace::Catalog::renameTable(), Catalog_Namespace::Catalog::renameTables(), TableArchiver::restoreTable(), AlterTableAlterColumnCommandRecoveryMgr::rollback(), Catalog_Namespace::Catalog::serializeTableJsonUnlocked(), Catalog_Namespace::Catalog::setForeignTableProperty(), foreign_storage::ParquetDataWrapper::updateChunkMetadataForFragment(), Fragmenter_Namespace::InsertOrderFragmenter::updateColumn(), Fragmenter_Namespace::InsertOrderFragmenter::updateColumns(), foreign_storage::AbstractTextFileDataWrapper::updateMetadata(), Catalog_Namespace::Catalog::updateViewUnlocked(), TableOptimizer::vacuumDeletedRows(), TableOptimizer::vacuumFragments(), TableOptimizer::vacuumFragmentsAboveMinSelectivity(), anonymous_namespace{DdlCommandExecutor.cpp}::validate_alter_type_metadata(), and anonymous_namespace{QueryPhysicalInputsCollector.cpp}::RelAlgPhysicalTableInputsVisitor::visit().
std::string TableDescriptor::tableName |
tableName is the name of the table table -must be unique
Definition at line 46 of file TableDescriptor.h.
Referenced by lockmgr::TableDataLockContainer< WriteLock >::acquire(), lockmgr::TableDataLockContainer< ReadLock >::acquire(), lockmgr::TableInsertLockContainer< WriteLock >::acquire(), lockmgr::TableInsertLockContainer< ReadLock >::acquire(), anonymous_namespace{DdlCommandExecutor.cpp}::add_table_details(), Catalog_Namespace::Catalog::addColumnNontransactional(), Catalog_Namespace::Catalog::addTableToMap(), Catalog_Namespace::Catalog::alterTableMetadata(), foreign_storage::LazyParquetChunkLoader::appendRowGroups(), Catalog_Namespace::Catalog::buildTablesMapUnlocked(), Parser::check_alter_table_privilege(), anonymous_namespace{DBHandler.cpp}::check_and_reset_in_memory_system_table(), anonymous_namespace{DBHandler.cpp}::create_thrift_obj_from_custom_expr(), Catalog_Namespace::Catalog::createShardedTable(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), Parser::anonymous_namespace{ParserNode.cpp}::disable_foreign_tables(), Catalog_Namespace::Catalog::dropColumnNontransactional(), Catalog_Namespace::Catalog::dropTable(), Catalog_Namespace::Catalog::dumpCreateTableUnlocked(), TableArchiver::dumpTable(), Catalog_Namespace::Catalog::eraseTableMetadata(), ShowCreateTableCommand::execute(), Parser::CreateTableStmt::execute(), Parser::CreateDataframeStmt::execute(), Parser::CreateTableAsSelectStmt::execute(), Parser::CopyTableStmt::execute(), Parser::CreateViewStmt::execute(), Catalog_Namespace::Catalog::filterTableByTypeAndUser(), Catalog_Namespace::Catalog::gatherAdditionalInfo(), Analyzer::RangeTableEntry::get_table_name(), getChunkAccessorTable(), Catalog_Namespace::Catalog::getSystemTableSchema(), hash_value(), DBHandler::hasTableAccessPrivileges(), EmbeddedDatabase::DBEngineImpl::importArrowTable(), import_export::ForeignDataImporter::importGeneral(), foreign_storage::InternalCatalogDataWrapper::initializeObjectsForTable(), foreign_storage::InternalMemoryStatsDataWrapper::initializeObjectsForTable(), foreign_storage::InternalMLModelMetadataDataWrapper::initializeObjectsForTable(), foreign_storage::InternalExecutorStatsDataWrapper::initializeObjectsForTable(), Catalog_Namespace::Catalog::instantiateFragmenter(), import_export::Loader::loadToShard(), foreign_storage::InternalSystemDataWrapper::populateChunkBuffers(), foreign_storage::InternalCatalogDataWrapper::populateChunkBuffersForTable(), foreign_storage::InternalMemoryStatsDataWrapper::populateChunkBuffersForTable(), foreign_storage::InternalMLModelMetadataDataWrapper::populateChunkBuffersForTable(), foreign_storage::InternalExecutorStatsDataWrapper::populateChunkBuffersForTable(), foreign_storage::InternalSystemDataWrapper::populateChunkMetadata(), TableOptimizer::recomputeMetadata(), Catalog_Namespace::Catalog::recreateSystemTableIfUpdated(), foreign_storage::refresh_foreign_table_unlocked(), foreign_storage::LogFileBufferParser::regexMatchColumns(), Catalog_Namespace::Catalog::reloadForeignTableUnlocked(), Catalog_Namespace::Catalog::reloadTableMetadataUnlocked(), Catalog_Namespace::Catalog::renameColumn(), Catalog_Namespace::Catalog::renamePhysicalTable(), Catalog_Namespace::Catalog::renamePhysicalTables(), Catalog_Namespace::Catalog::renameTables(), TableArchiver::restoreTable(), Catalog_Namespace::Catalog::serializeTableJsonUnlocked(), ddl_utils::set_default_table_attributes(), Catalog_Namespace::Catalog::setColumnDictionary(), Catalog_Namespace::Catalog::setColumnSharedDictionary(), Catalog_Namespace::Catalog::setForeignTableProperty(), foreign_storage::anonymous_namespace{AbstractTextFileDataWrapper.cpp}::throw_fragment_id_out_of_bounds_error(), RelScan::toString(), RelModify::toString(), Catalog_Namespace::Catalog::updateViewUnlocked(), DBHandler::user_can_access_table(), Parser::anonymous_namespace{ParserNode.cpp}::user_can_access_table(), anonymous_namespace{DdlCommandExecutor.cpp}::vacuum_table_if_required(), ddl_utils::validate_table_type(), and foreign_storage::AbstractFileStorageDataWrapper::validateFilePathOptionKey().
int32_t TableDescriptor::userId |
Definition at line 47 of file TableDescriptor.h.
Referenced by Catalog_Namespace::Catalog::buildTablesMapUnlocked(), Parser::check_alter_table_privilege(), anonymous_namespace{Calcite.cpp}::checkPermissionForTables(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), Parser::CreateTableStmt::execute(), Parser::CreateDataframeStmt::execute(), Parser::CreateTableAsSelectStmt::execute(), Parser::CreateViewStmt::execute(), Catalog_Namespace::Catalog::getSystemTableSchema(), EmbeddedDatabase::DBEngineImpl::importArrowTable(), import_export::ForeignDataImporter::importGeneral(), and CreateForeignTableCommand::setTableDetails().
std::string TableDescriptor::viewSQL |
Definition at line 50 of file TableDescriptor.h.
Referenced by Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), Catalog_Namespace::Catalog::dumpCreateTableUnlocked(), ShowCreateTableCommand::execute(), Parser::CreateViewStmt::execute(), and Catalog_Namespace::Catalog::updateViewUnlocked().