mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes
m::Join Struct Reference

A Join in a QueryGraph combines DataSources by a join condition. More...

#include <QueryGraph.hpp>

Collaboration diagram for m::Join:
[legend]

Public Types

using sources_t = std::vector< std::reference_wrapper< DataSource > >
 

Public Member Functions

 Join (cnf::CNF condition, sources_t sources)
 
const cnf::CNFcondition () const
 Returns the join condition.
 
void update_condition (cnf::CNF update)
 Adds condition to the current condition of this Join by logical conjunction.
 
const sources_tsources () const
 Returns a reference to the joined DataSources.
 
bool operator== (const Join &other) const
 
bool operator!= (const Join &other) const
 

Private Attributes

cnf::CNF condition_
 join condition
 
sources_t sources_
 the sources to join
 

Detailed Description

A Join in a QueryGraph combines DataSources by a join condition.

Definition at line 137 of file QueryGraph.hpp.

Member Typedef Documentation

◆ sources_t

using m::Join::sources_t = std::vector<std::reference_wrapper<DataSource> >

Definition at line 139 of file QueryGraph.hpp.

Constructor & Destructor Documentation

◆ Join()

m::Join::Join ( cnf::CNF  condition,
sources_t  sources 
)
inline

Definition at line 146 of file QueryGraph.hpp.

Member Function Documentation

◆ condition()

const cnf::CNF & m::Join::condition ( ) const
inline

Returns the join condition.

Definition at line 149 of file QueryGraph.hpp.

◆ operator!=()

bool m::Join::operator!= ( const Join other) const
inline

Definition at line 166 of file QueryGraph.hpp.

◆ operator==()

bool m::Join::operator== ( const Join other) const
inline

Definition at line 155 of file QueryGraph.hpp.

References condition_, and sources().

◆ sources()

const sources_t & m::Join::sources ( ) const
inline

◆ update_condition()

void m::Join::update_condition ( cnf::CNF  update)
inline

Adds condition to the current condition of this Join by logical conjunction.

Definition at line 151 of file QueryGraph.hpp.

References and().

Field Documentation

◆ condition_

cnf::CNF m::Join::condition_
private

join condition

Definition at line 142 of file QueryGraph.hpp.

Referenced by operator==().

◆ sources_

sources_t m::Join::sources_
private

the sources to join

Definition at line 143 of file QueryGraph.hpp.


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