10#ifndef _SWATDB_INDEXFILE_H_
11#define _SWATDB_INDEXFILE_H_
62 relation, std::vector<std::string> field_list);
80 relation, std::vector<FieldId> field_list);
Catalog * catalog
Definition file.h:124
BufferManager * buf_mgr
Definition file.h:129
Definition indexfile.h:41
virtual void deleteEntry(Key key, RecordId record_id)=0
A virtual method for deleting an entry of the given Key and RecordId.
virtual ~IndexFile()
Destructor. Data members are cleaned up, but none of the dynamically allocated data members are delet...
Definition indexfile.h:87
IndexFile(Catalog *catalog, BufferManager *buf_mgr, FileId relation, std::vector< std::string > field_list)
Constructor for IndexFile class.
SearchKeyFormat * getKeyFormat()
Returns the key format of the Index.
virtual std::vector< RecordId > getEntries(Key key)=0
A virtual method for getting a list of entries with the given key.
SearchKeyFormat * key_format
Definition indexfile.h:138
IndexFile(Catalog *catalog, BufferManager *buf_mgr, FileId relation, std::vector< FieldId > field_list)
Constructor for IndexFile class.
virtual void deleteKey(Key key)=0
A virtual method for deleting all entires with the given key.
FileId relation
Definition indexfile.h:133
virtual void insertEntry(Key key, RecordId record_id)=0
A virtual method for inserting a <Key, RecordId> entry into the IndexFile.
Definition swatdb_types.h:70
std::uint32_t FileId
Definition swatdb_types.h:33