SwatDB
|
#include <filescan.h>
Public Member Functions | |
FileScan (FileId rel_id, FileId result_id, std::vector< FieldId > fields, std::vector< Comp > comps, std::vector< void * > values, Catalog *catalog) | |
Constructor for FileScan select operation. | |
~FileScan () | |
Destructor for FileScan. Deletes dynamic member variables. | |
void | runOperation () |
Runs the filescan operation. All tuples of the relations will be looped over and checked against the value and comparison conditions. For each tuple, if it passes these conditions, it will be added to the result file. | |
![]() | |
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. | |
![]() | |
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. | |
Additional Inherited Members | |
![]() | |
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. | |
![]() | |
std::vector< FieldId > | fields |
std::vector< Comp > | comps |
std::vector< void * > | values |
fileState | file_state |
![]() | |
fileState | result_state |
Catalog * | catalog |
Select is an abstract class that lays the foundation for select operations
|
virtual |
Runs the filescan operation. All tuples of the relations will be looped over and checked against the value and comparison conditions. For each tuple, if it passes these conditions, it will be added to the result file.
Implements Operation.