|
| IndexFile (Catalog *catalog, BufferManager *buf_mgr, FileId relation, std::vector< std::string > field_list) |
| Constructor for IndexFile class.
|
|
| IndexFile (Catalog *catalog, BufferManager *buf_mgr, FileId relation, std::vector< FieldId > field_list) |
| Constructor for IndexFile class.
|
|
virtual | ~IndexFile () |
| Destructor. Data members are cleaned up, but none of the dynamically allocated data members are deleted. The underlying Unix file is not deleted.
|
|
SearchKeyFormat * | getKeyFormat () |
| Returns the key format of the Index.
|
|
virtual void | insertEntry (Key key, RecordId record_id)=0 |
| A virtual method for inserting a <Key, RecordId> entry into the IndexFile.
|
|
virtual std::vector< RecordId > | getEntries (Key key)=0 |
| A virtual method for getting a list of entries with the given key.
|
|
virtual void | deleteEntry (Key key, RecordId record_id)=0 |
| A virtual method for deleting an entry of the given Key and RecordId.
|
|
virtual void | deleteKey (Key key)=0 |
| A virtual method for deleting all entires with the given key.
|
|
| File (Catalog *catalog, BufferManager *buf_mgr) |
| Constructor. Initializes common state associated with every file, including catalog, buf_mgr, and schema.
|
|
virtual | ~File () |
| Destructor. Data members are cleaned up, but none of the dynamically allocated data members are deleted. The underlying Unix file is not deleted.
|
|
virtual void | createHeader ()=0 |
| Allocates and initializes the header. Is a virtual method to be overridden at each derived class.
|
|
virtual void | flushHeader ()=0 |
| Flushes Header Page to disk. Is a virtual method to be overridden at each derived class.
|
|
FileId | getFileId () |
| Returns the FileId of the File.
|
|
virtual void | printFile () |
| Prints out information and/or the contents of the file. Can be overwritten in derived classes. Useful for debugging and testing purposes.
|
|
PageId | getHeaderId () |
| Returns Header PageId.
|
|
SwatDB IndexFile Class. Represents index file in the system. It is an abstract class from which lower level index file implementations (B+ tree and Hash index) inherit. abstract methods for inserting and deleting entries are defined. There may be other lower level methods that are implementation specific (and hence not defined here).