OmniSciDB  c07336695a
TableDescriptor Struct Reference

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

#include <TableDescriptor.h>

+ Collaboration diagram for TableDescriptor:

Public Member Functions

 TableDescriptor ()
 

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
 
Fragmenter_Namespace::AbstractFragmenterfragmenter
 
int32_t nShards
 
int shardedColumnId
 
int sortedColumnId
 
Data_Namespace::MemoryLevel persistenceLevel
 
bool hasDeletedCol
 
std::vector< int > columnIdBySpi_
 
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 32 of file TableDescriptor.h.

Constructor & Destructor Documentation

◆ TableDescriptor()

TableDescriptor::TableDescriptor ( )
inline

Definition at line 68 of file TableDescriptor.h.

69  : tableId(-1)
70  , shard(-1)
71  , nShards(0)
72  , shardedColumnId(0)
73  , sortedColumnId(0)
75  , hasDeletedCol(true)
76  , mutex_(std::make_shared<std::mutex>()) {}
std::shared_ptr< std::mutex > mutex_
Data_Namespace::MemoryLevel persistenceLevel

Member Data Documentation

◆ columnIdBySpi_

std::vector<int> TableDescriptor::columnIdBySpi_

◆ fragmenter

◆ fragments

std::string TableDescriptor::fragments

Definition at line 40 of file TableDescriptor.h.

Referenced by Catalog_Namespace::Catalog::buildMaps().

◆ fragPageSize

◆ fragType

◆ hasDeletedCol

◆ isView

◆ keyMetainfo

◆ maxChunkSize

◆ maxFragRows

◆ maxRows

◆ mutex_

◆ nColumns

◆ nShards

◆ partitions

◆ persistenceLevel

◆ shard

◆ shardedColumnId

◆ sortedColumnId

◆ tableId

int32_t TableDescriptor::tableId

tableId starts at 0 for valid tables.

Definition at line 33 of file TableDescriptor.h.

Referenced by 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(), checkPermissionForTables(), compare_td_id(), RelAlgExecutor::createModifyCompoundWorkUnit(), RelAlgExecutor::createModifyProjectWorkUnit(), Catalog_Namespace::Catalog::createShardedTable(), Catalog_Namespace::Catalog::createTable(), Parser::InsertValuesStmt::determineLeafIndex(), Catalog_Namespace::Catalog::doDropTable(), Catalog_Namespace::Catalog::doTruncateTable(), Catalog_Namespace::Catalog::dropTable(), Catalog_Namespace::Catalog::eraseTablePhysicalData(), Parser::RenameColumnStmt::execute(), Parser::AddColumnStmt::execute(), Analyzer::RangeTableEntry::expand_star_in_targetlist(), Fragmenter_Namespace::get_chunks(), Analyzer::RangeTableEntry::get_column_desc(), Catalog_Namespace::anonymous_namespace{Catalog.cpp}::get_foreign_col(), anonymous_namespace{CalciteAdapter.cpp}::get_scan_plan(), Analyzer::RangeTableEntry::get_table_id(), getChunkAccessorTable(), Fragmenter_Namespace::InsertOrderFragmenter::getChunksForAllColumns(), Catalog_Namespace::Catalog::getDeletedColumnIfRowsDeleted(), Catalog_Namespace::Catalog::getMetadataForLink(), Catalog_Namespace::Catalog::getPhysicalTablesDescriptors(), Catalog_Namespace::Catalog::getShardColumnMetadataForTable(), MapDHandler::import_geo_table(), Parser::InsertIntoTableAsSelectStmt::LocalConnector::insertDataToLeaf(), Catalog_Namespace::Catalog::instantiateFragmenter(), populate_table_random(), Parser::InsertIntoTableAsSelectStmt::populateData(), TableOptimizer::recomputeMetadata(), Catalog_Namespace::Catalog::renameColumn(), Catalog_Namespace::Catalog::renamePhysicalTable(), Catalog_Namespace::Catalog::renameTable(), scan_table_return_hash(), scan_table_return_hash_non_iter(), Catalog_Namespace::Catalog::setColumnSharedDictionary(), TEST_P(), 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

◆ userId

◆ viewSQL

std::string TableDescriptor::viewSQL

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