Go to the documentation of this file. 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;
57 #endif // CATALOG_TABLE_DESC_H
Definition: TableDesc.h:11
std::unique_ptr< Schema > m_schema
Definition: TableDesc.h:52
constexpr const Schema * GetSchema() const
Returns the cached table schema, which we guanrantee ‘IsLayoutComputed() == true’.
Definition: TableDesc.h:41
A Schema object stores the information for accessing an ordered set of typed fields either from a dis...
Definition: Schema.h:39
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
SysTable_Table is an in-memory cached record in the system catalog SysTable_Table.
Definition: Table.h:16
std::shared_ptr< const SysTable_Table > m_table
Definition: TableDesc.h:51
constexpr const SysTable_Table * GetTableEntry() const
Returns the cached Table entry associated with this table descriptor.
Definition: TableDesc.h:32
TableDesc(std::shared_ptr< const SysTable_Table > table, std::unique_ptr< Schema > schema)
Definition: TableDesc.h:46