SwatDB
|
#include <catalog.h>
Public Attributes | |
FileId | file_id |
std::string | name |
CatType | entry_type |
Schema * | schema |
SearchKeyFormat * | key_format |
File * | file |
std::string | file_name |
bool | valid |
bool | alloced |
FileId | relation |
std::vector< FileId > | index_list |
bool | save_on_exit |
Struct for an entry in the catalog. There is one entry for each relation and index in the system.
bool CatalogEntry::alloced |
Set to true if this entry has been allocated for use.
CatType CatalogEntry::entry_type |
The type of entry in the catalog (Relation or Index).
FileId CatalogEntry::file_id |
The entry's FileId used as a system-wide identifier for this relation or index.
std::string CatalogEntry::file_name |
The name of the underlying unix file for the file object.
std::vector<FileId> CatalogEntry::index_list |
List of FileIds of the index of the relation. Empty if the entry is an index or there is no index.
SearchKeyFormat* CatalogEntry::key_format |
A pointer to the SearchKeyFormat object of this entry.
std::string CatalogEntry::name |
The name of the index or relation.
FileId CatalogEntry::relation |
FileId of the parent relation if the entry is an index.Otherwise set to INVALID_FILE_ID
bool CatalogEntry::save_on_exit |
Boolean operator that indicates whether or not the relation file should be saved or not on shut down.
Schema* CatalogEntry::schema |
A pointer to the schema object of this entry.
bool CatalogEntry::valid |
Set to true if this entry has valid contents.