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. | |
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. | |
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
|
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.