#include <blockNLJ.h>
|
| | BlockNLJ (FileId outer_id, FileId inner_id, FileId result_id, std::vector< FieldId > outer_fields, std::vector< FieldId > inner_fields, std::uint32_t block_size, Catalog *catalog) |
| | Performs join operation using the block nested loop join algorithm.
|
| |
|
| ~BlockNLJ () |
| | Destructor for TupleNLJ. Deletes dynamic member variables.
|
| |
| void | runOperation () |
| | Runs the operation.
|
| |
| | Join (FileId outer_id, FileId inner_id, FileId result_id, std::vector< FieldId > outer_fields, std::vector< FieldId > inner_fields, Catalog *catalog) |
| | Constructor for Join operation. Join subclasses use this constructor.
|
| |
|
| ~Join () |
| | Destructor for the Join 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.
|
| |
BlockNLJ implements the block nested loop join functionality.
◆ BlockNLJ()
Performs join operation using the block nested loop join algorithm.
- Precondition
- Input result file is empty. The types of the fields being joined on
have the same type. The parameters are valid.
- Postcondition
- The result file is filled with the records that match the condition of the select.
- Parameters
-
| outer_id. | FileId of the outer relation file.
|
| inner_id. | FileId of the inner relation file.
|
| result_file | File * pointing to an empty file which will be
filled with the tuples that satisfy the comparision
|
| outer_fields. | vector of FieldIds corresponding to the join fields in outer_rel
|
| inner_fields. | vector of FieldIds corresponding to the join fields in inner_rel
|
| block_size. | std::uint32_t size of block.
|
◆ runOperation()
| void BlockNLJ::runOperation |
( |
| ) |
|
|
virtual |
Runs the operation.
- Precondition
- Valid files and parameters have been passed to the contructor.
- Postcondition
- Result file has been populated with records that meet the criteria of the operation.
Implements Operation.
The documentation for this class was generated from the following file: