1 #ifndef CATALOG_TABLE_DESC_H
2 #define CATALOG_TABLE_DESC_H
19 const std::vector<const SysTable_Column*> &columns);
23 std::unique_ptr<Schema> schema);
46 TableDesc(std::shared_ptr<const SysTable_Table> table,
47 std::unique_ptr<Schema> schema):
51 std::shared_ptr<const SysTable_Table>
m_table;
A Schema object stores the information for accessing an ordered set of typed fields either from a dis...
Definition: Schema.h:39
SysTable_Table is an in-memory cached record in the system catalog SysTable_Table.
Definition: Table.h:16
Definition: TableDesc.h:11
static TableDesc * Create(std::shared_ptr< const SysTable_Table > table, const std::vector< const SysTable_Column * > &columns)
Creates a new table descriptor by building the schema object constructed from the columns (which perf...
Definition: TableDesc.cpp:6
TableDesc(std::shared_ptr< const SysTable_Table > table, std::unique_ptr< Schema > schema)
Definition: TableDesc.h:46
std::unique_ptr< Schema > m_schema
Definition: TableDesc.h:52
const SysTable_Table * GetTableEntry() const
Returns the cached Table entry associated with this table descriptor.
Definition: TableDesc.h:32
const Schema * GetSchema() const
Returns the cached table schema, which we guanrantee ‘IsLayoutComputed() == true’.
Definition: TableDesc.h:41
std::shared_ptr< const SysTable_Table > m_table
Definition: TableDesc.h:51
This header file includes all internal struct representation of system catalog records.