SwatDB
Loading...
Searching...
No Matches
Public Attributes | List of all members
CatalogEntry Struct Reference

#include <catalog.h>

Collaboration diagram for CatalogEntry:
Collaboration graph
[legend]

Public Attributes

FileId file_id
 
std::string name
 
CatType entry_type
 
Schemaschema
 
SearchKeyFormatkey_format
 
Filefile
 
std::string file_name
 
bool valid
 
bool alloced
 
FileId relation
 
std::vector< FileIdindex_list
 
bool save_on_exit
 

Detailed Description

Struct for an entry in the catalog. There is one entry for each relation and index in the system.

Member Data Documentation

◆ alloced

bool CatalogEntry::alloced

Set to true if this entry has been allocated for use.

◆ entry_type

CatType CatalogEntry::entry_type

The type of entry in the catalog (Relation or Index).

◆ file

File* CatalogEntry::file

A pointer to the SwatDB file object (e.g. HeapFile).

◆ file_id

FileId CatalogEntry::file_id

The entry's FileId used as a system-wide identifier for this relation or index.

◆ file_name

std::string CatalogEntry::file_name

The name of the underlying unix file for the file object.

◆ index_list

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.

◆ key_format

SearchKeyFormat* CatalogEntry::key_format

A pointer to the SearchKeyFormat object of this entry.

◆ name

std::string CatalogEntry::name

The name of the index or relation.

◆ relation

FileId CatalogEntry::relation

FileId of the parent relation if the entry is an index.Otherwise set to INVALID_FILE_ID

◆ save_on_exit

bool CatalogEntry::save_on_exit

Boolean operator that indicates whether or not the relation file should be saved or not on shut down.

◆ schema

Schema* CatalogEntry::schema

A pointer to the schema object of this entry.

◆ valid

bool CatalogEntry::valid

Set to true if this entry has valid contents.


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