CLASS IndexFile

#include <index.h>

IndexFile is an abstract class. Any class that implements an index should be a subclass of IndexFile, including B+-tree index. An IndexFile consists of a bunch of (key, rid).

Pure Methods

~IndexFile()

Destructor for index file. Clean up and close the file.

Status Insert(const void *key, const RecordID &rid) = 0

Insert the pair (key, rid) into the index.

Status Delete(const void *key, const RecordID& rid) = 0

Delete the pair (key, rid) from the index.