OmniSciDB  21ac014ffc
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TableDescriptor Struct Reference

#include <TableDescriptor.h>

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

Public Member Functions

 TableDescriptor ()
 
virtual ~TableDescriptor ()=default
 
bool isForeignTable () const
 
bool isTemporaryTable () 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
 
std::shared_ptr< std::mutex > mutex_
 

Detailed Description

Definition at line 43 of file TableDescriptor.h.

Constructor & Destructor Documentation

TableDescriptor::TableDescriptor ( )
inline

Definition at line 82 of file TableDescriptor.h.

83  : tableId(-1)
84  , shard(-1)
85  , nShards(0)
86  , shardedColumnId(0)
87  , sortedColumnId(0)
89  , hasDeletedCol(true)
91  , mutex_(std::make_shared<std::mutex>()) {}
int32_t maxRollbackEpochs
std::shared_ptr< std::mutex > mutex_
#define DEFAULT_MAX_ROLLBACK_EPOCHS
specifies the content in-memory of a row in the table metadata table
Data_Namespace::MemoryLevel persistenceLevel
virtual TableDescriptor::~TableDescriptor ( )
virtualdefault

Member Function Documentation

bool TableDescriptor::isForeignTable ( ) const
inline

Definition at line 95 of file TableDescriptor.h.

References StorageType::FOREIGN_TABLE, and storageType.

Referenced by system_validator::should_validate_epoch().

std::string storageType
static constexpr char const * FOREIGN_TABLE

+ Here is the caller graph for this function:

bool TableDescriptor::isTemporaryTable ( ) const
inline

Definition at line 97 of file TableDescriptor.h.

References Data_Namespace::CPU_LEVEL, and persistenceLevel.

Referenced by system_validator::should_validate_epoch().

97  {
99  }
Data_Namespace::MemoryLevel persistenceLevel

+ Here is the caller graph for this function:

Member Data Documentation

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{CsvDataWrapper.cpp}::add_placeholder_metadata(), anonymous_namespace{DdlCommandExecutor.cpp}::add_table_details(), Catalog_Namespace::Catalog::addColumn(), Catalog_Namespace::Catalog::addTableToMap(), Catalog_Namespace::Catalog::alterPhysicalTableMetadata(), Catalog_Namespace::Catalog::alterTableMetadata(), Parser::InsertStmt::analyze(), RelModify::applyUpdateModificationsToInputNode(), Catalog_Namespace::Catalog::buildMaps(), Parser::AddColumnStmt::check_executable(), checkPermissionForTables(), UpdelRoll::commitUpdate(), 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::dropTable(), Catalog_Namespace::Catalog::dumpCreateTable(), Catalog_Namespace::Catalog::dumpSchema(), TableArchiver::dumpTable(), 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(), StorageIOFacility::TransactionParameters::finalizeTransaction(), foreign_storage::ForeignTable::ForeignTable(), foreign_storage::ForeignTableSchema::ForeignTableSchema(), Catalog_Namespace::Catalog::gatherAdditionalInfo(), anonymous_namespace{DdlCommandExecutor.cpp}::get_agg_storage_stats(), Fragmenter_Namespace::get_chunks(), Analyzer::RangeTableEntry::get_column_desc(), Catalog_Namespace::anonymous_namespace{Catalog.cpp}::get_foreign_col(), anonymous_namespace{QueryPlanDagExtractor.cpp}::get_input_idx(), Analyzer::RangeTableEntry::get_table_id(), Catalog_Namespace::Catalog::getAllColumnMetadataForTableImpl(), getChunkAccessorTable(), Fragmenter_Namespace::InsertOrderFragmenter::getChunksForAllColumns(), foreign_storage::ForeignTableSchema::getColumnDescriptor(), TableOptimizer::getDeletedColumnStats(), 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::ParquetDataWrapper::loadBuffersUsingLazyParquetChunkLoader(), foreign_storage::ParquetDataWrapper::metadataScanFiles(), foreign_storage::CsvDataWrapper::populateChunkBuffers(), foreign_storage::CsvDataWrapper::populateChunkMapForColumns(), foreign_storage::CsvDataWrapper::populateChunkMetadata(), Parser::InsertIntoTableAsSelectStmt::populateData(), TableOptimizer::recomputeColumnMetadata(), TableOptimizer::recomputeMetadata(), ForeignStorageInterface::registerTable(), AlterForeignTableCommand::renameColumn(), Catalog_Namespace::Catalog::renameColumn(), Catalog_Namespace::Catalog::renameTable(), TableArchiver::restoreTable(), Catalog_Namespace::Catalog::serializeTableJsonUnlocked(), Catalog_Namespace::Catalog::setForeignTableProperty(), RelScan::toHash(), Catalog_Namespace::Catalog::truncateTable(), Fragmenter_Namespace::InsertOrderFragmenter::updateColumn(), Fragmenter_Namespace::InsertOrderFragmenter::updateColumns(), foreign_storage::CsvDataWrapper::updateMetadata(), TableOptimizer::vacuumDeletedRows(), TableOptimizer::vacuumFragments(), TableOptimizer::vacuumFragmentsAboveMinSelectivity(), 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 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::addTableToMap(), Catalog_Namespace::Catalog::alterTableMetadata(), 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::CopyTableStmt::execute(), Parser::ShowCreateTableStmt::execute(), Parser::CreateViewStmt::execute(), Catalog_Namespace::Catalog::filterTableByTypeAndUser(), Catalog_Namespace::Catalog::gatherAdditionalInfo(), Analyzer::RangeTableEntry::get_table_name(), getChunkAccessorTable(), Catalog_Namespace::Catalog::getTableNamesForUser(), Catalog_Namespace::Catalog::getTablesMetadataForUser(), DBHandler::hasTableAccessPrivileges(), EmbeddedDatabase::DBEngineImpl::importArrowTable(), Catalog_Namespace::Catalog::instantiateFragmenter(), import_export::Loader::loadToShard(), TableOptimizer::recomputeMetadata(), Catalog_Namespace::Catalog::renameColumn(), Catalog_Namespace::Catalog::renamePhysicalTable(), Catalog_Namespace::Catalog::renameTable(), TableArchiver::restoreTable(), Catalog_Namespace::Catalog::roll(), Catalog_Namespace::Catalog::serializeTableJsonUnlocked(), ddl_utils::set_default_table_attributes(), Catalog_Namespace::Catalog::setColumnDictionary(), Catalog_Namespace::Catalog::setColumnSharedDictionary(), Catalog_Namespace::Catalog::setForeignTableProperty(), RelScan::toHash(), RelModify::toHash(), RelScan::toString(), RelModify::toString(), DBHandler::user_can_access_table(), ddl_utils::validate_table_type(), and foreign_storage::AbstractFileStorageDataWrapper::validateFilePathOptionKey().


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