|
SwatDB
|
#include <indexscan.h>


Public Member Functions | |
| IndexScan (FileId rel_id, FileId index_id, FileId result_id, std::vector< FieldId > fields, std::vector< Comp > comps, std::vector< void * > values, Catalog *catalog) | |
| Constructor for IndexScan select operation. | |
| ~IndexScan () | |
| Destructor for IndexScan. Delete dynamic member variables. | |
| void | runOperation () |
| Runs the operation. This is a pure virtual method, and is implemented in inherited classes. All child classes must implement this method. | |
Public Member Functions inherited from Select | |
| Select (FileId rel_id, FileId result_id, std::vector< FieldId > fields, std::vector< Comp > comps, std::vector< void * > values, Catalog *catalog) | |
| Constructor for Select operation. Both FileScan and IndexScan use this constructor. | |
| ~Select () | |
| Destructor for the Select Operation. | |
Public Member Functions inherited from Operation | |
| Operation (FileId result_id, Catalog *catalog) | |
| Constructor for the Operation class. Because Operation is an abstract class, an object cannot be created, but this constructor is used by derived classes. | |
| virtual | ~Operation () |
| Destructor for the Operation class. Cleans up dynamic memory in result state. | |
Private Attributes | |
| HashIndexFile * | index_file |
Additional Inherited Members | |
Protected Member Functions inherited from Operation | |
| void | _initState (FileId file_id, std::vector< FieldId > fields, fileState *state) |
| Performs the file and temporary record setup for relational operators. | |
| void | _delState (fileState *file_state) |
| Deletes objects created in relop structs. | |
Protected Attributes inherited from Select | |
| std::vector< FieldId > | fields |
| std::vector< Comp > | comps |
| std::vector< void * > | values |
| fileState | file_state |
Protected Attributes inherited from Operation | |
| fileState | result_state |
| Catalog * | catalog |
Select is an abstract class that lays the foundation for select operations
| IndexScan::IndexScan | ( | FileId | rel_id, |
| FileId | index_id, | ||
| FileId | result_id, | ||
| std::vector< FieldId > | fields, | ||
| std::vector< Comp > | comps, | ||
| std::vector< void * > | values, | ||
| Catalog * | catalog | ||
| ) |
Constructor for IndexScan select operation.
|
virtual |
Runs the operation. This is a pure virtual method, and is
implemented in inherited classes. All child classes must implement
this method.
Implements Operation.
|
private |
HashIndex * for the index file being selected on.