OmniSciDB  1dac507f6e
 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>

+ 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 ( )
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

std::vector<int> TableDescriptor::columnIdBySpi_
std::string TableDescriptor::fragments

Definition at line 40 of file TableDescriptor.h.

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

std::shared_ptr<std::mutex> TableDescriptor::mutex_
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::dumpSchema(), Catalog_Namespace::Catalog::dumpTable(), 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::getPhysicalTablesDescriptors(), Catalog_Namespace::Catalog::getShardColumnMetadataForTable(), Catalog_Namespace::Catalog::getTableDictDirectories(), MapDHandler::import_geo_table(), Importer_NS::Loader::init(), Parser::InsertIntoTableAsSelectStmt::LocalConnector::insertDataToLeaf(), Catalog_Namespace::Catalog::instantiateFragmenter(), Parser::InsertIntoTableAsSelectStmt::populateData(), TableOptimizer::recomputeMetadata(), Catalog_Namespace::Catalog::renameColumn(), Catalog_Namespace::Catalog::renamePhysicalTable(), Catalog_Namespace::Catalog::renameTable(), Catalog_Namespace::Catalog::restoreTable(), Catalog_Namespace::Catalog::setColumnSharedDictionary(), 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().

std::string TableDescriptor::viewSQL

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