00001 /* 00002 * IndexHandle.h 00003 * 00004 * Created on: Apr 4, 2010 00005 * Author: Mingmin Chen 00006 */ 00007 00008 #ifndef INDEXHANDLE_H_ 00009 #define INDEXHANDLE_H_ 00010 00011 #include "Common.h" 00012 #include "Record.h" 00013 00014 00022 class IndexHandle { 00023 public: 00024 IndexHandle(); 00025 ~IndexHandle(); 00026 00042 ReturnCode insertEntry(void *data, const RecordID *rid); 00043 00055 ReturnCode deleteEntry(void *data, const RecordID *rid); 00056 00065 ReturnCode forcePage(int pageNo); 00066 00073 ReturnCode forceAllPages(); 00074 00075 private: 00076 00077 }; 00078 00079 #endif /* INDEXHANDLE_H_ */