OmniSciDB  06b3bd477c
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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::AbstractFragmenter
fragmenter
 
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 ( )
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
virtual TableDescriptor::~TableDescriptor ( )
virtualdefault

Member Data Documentation

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(), 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(), DataframeTableDescriptor::DataframeTableDescriptor(), 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(), Fragmenter_Namespace::get_chunks(), Analyzer::RangeTableEntry::get_column_desc(), Catalog_Namespace::anonymous_namespace{Catalog.cpp}::get_foreign_col(), Analyzer::RangeTableEntry::get_table_id(), Catalog_Namespace::Catalog::getAllColumnMetadataForTableImpl(), getChunkAccessorTable(), Fragmenter_Namespace::InsertOrderFragmenter::getChunksForAllColumns(), foreign_storage::ParquetDataWrapper::getColumnsToInitialize(), Catalog_Namespace::Catalog::getDeletedColumnIfRowsDeleted(), Catalog_Namespace::Catalog::getDictionaryToColumnMapping(), Catalog_Namespace::Catalog::getPhysicalTablesDescriptors(), Catalog_Namespace::Catalog::getShardColumnMetadataForTable(), Catalog_Namespace::Catalog::getTableDictDirectories(), DBHandler::import_geo_table(), import_export::Loader::init(), foreign_storage::ParquetDataWrapper::initializeChunkBuffers(), Parser::LocalConnector::insertDataToLeaf(), Catalog_Namespace::Catalog::instantiateFragmenter(), foreign_storage::ForeignTableColumnMap::mapColumns(), 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(), foreign_storage::anonymous_namespace{LazyParquetImporter.cpp}::validate_schema(), and anonymous_namespace{QueryPhysicalInputsCollector.cpp}::RelAlgPhysicalTableInputsVisitor::visitScan().

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(), Catalog_Namespace::Catalog::addTableToMap(), Catalog_Namespace::Catalog::buildMaps(), Parser::check_alter_table_privilege(), Catalog_Namespace::Catalog::createShardedTable(), Catalog_Namespace::Catalog::createTable(), DataframeTableDescriptor::DataframeTableDescriptor(), 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::CreateViewStmt::execute(), foreign_storage::anonymous_namespace{LazyParquetImporter.cpp}::get_fsi_supported_metadata_scan_columns(), Analyzer::RangeTableEntry::get_table_name(), getChunkAccessorTable(), Catalog_Namespace::Catalog::getTableNamesForUser(), 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::roll(), 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_schema().


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