10#ifndef _SWATDB_RELATIONFILE_H_
11#define _SWATDB_RELATIONFILE_H_
Catalog * catalog
Definition file.h:124
BufferManager * buf_mgr
Definition file.h:129
Definition relationfile.h:32
virtual std::uint64_t getNumRecords()
virtual function that returns the number of records in the file
Definition relationfile.h:70
virtual void getRecord(RecordId record_id, Record *record)=0
Virtual method for getting record of the given RecordId.
virtual ~RelationFile()
Destructor. Data members are cleaned up, but none of the dynamically allocated data members are delet...
Definition relationfile.h:59
Schema * getSchema()
Returns the schema of the File.
virtual void deleteRecord(RecordId record_id)=0
Virtual method for deleting record of the given RecordId.
RelationFile(Catalog *catalog, BufferManager *buf_mgr, Schema *schema)
Constructor. Initializes common state associated with every file, including catalog,...
virtual std::uint32_t getNumPages()
virtual function that returns the number of pages in the file
Definition relationfile.h:64
virtual void updateRecord(RecordId record_id, Record record)=0
Virtual method for updating record of the given RecordId.
Schema * schema
Definition relationfile.h:105
virtual RecordId insertRecord(Record record)=0
Virtual method for inserting a Record into the RelationFile.
Definition swatdb_types.h:70