00001 /* 00002 * IndexScan.h 00003 * 00004 * Created on: Apr 4, 2010 00005 * Author: Mingmin Chen 00006 */ 00007 00008 #ifndef INDEXSCAN_H_ 00009 #define INDEXSCAN_H_ 00010 00011 #include "Common.h" 00012 #include "IndexHandle.h" 00013 #include "RecordFileScan.h" 00014 00021 class IndexScan { 00022 public: 00023 IndexScan(); 00024 ~IndexScan(); 00025 00048 ReturnCode openScan(IndexHandle *indexHandle, ComparisonOp compOp, 00049 void *value); 00050 00062 ReturnCode getNextEntry(RecordID *rid); 00063 00070 ReturnCode closeScan(); 00071 00072 private: 00073 }; 00074 00075 #endif /* INDEXSCAN_H_ */