SwatDB
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
Join Class Reference
Inheritance diagram for Join:
Inheritance graph
[legend]
Collaboration diagram for Join:
Collaboration graph
[legend]

Public Member Functions

 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.
 
- 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.
 
virtual void runOperation ()=0
 Runs the operation. Other than initial setup in the initialization, all the work of each operation is done in this function. It is a pure virtual method, and is implemented in inherited classes. All child classes must implement this method.
 

Protected Attributes

fileState outer
 
fileState inner
 
std::vector< FieldIdouter_fields
 
std::vector< FieldIdinner_fields
 
- Protected Attributes inherited from Operation
fileState result_state
 
Catalogcatalog
 

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.
 

Constructor & Destructor Documentation

◆ Join()

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

Parameters
outer_id.FileId of the outer relation file.
inner_id.FileId of the inner relation file.
result_idFileId of the result file.
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
catalog.Pointer to catalog

Member Data Documentation

◆ inner_fields

std::vector<FieldId> Join::inner_fields
protected

Inner fields used in the join operation

◆ outer_fields

std::vector<FieldId> Join::outer_fields
protected

Outer fields used in the join operation


The documentation for this class was generated from the following file: