OoOJoin  0.0.1
The next generation of out-of-order join operator
OoOJoin::JoinAlgoTable Class Reference

The table contains all supported algos. More...

#include <JoinAlgos/JoinAlgoTable.h>

Collaboration diagram for OoOJoin::JoinAlgoTable:

Public Member Functions

AbstractJoinAlgoPtr findAlgo (size_t idx)
 find a algorithm in the table according to its index More...
 
AbstractJoinAlgoPtr findAlgo (std::string name)
 find a algorithm in the table according to its index More...
 
size_t registerNewAlgo (AbstractJoinAlgoPtr anew)
 To register a new algorithm. More...
 

Protected Attributes

std::vector< AbstractJoinAlgoPtr > algos
 
std::map< std::string, AbstractJoinAlgoPtr > algoMap
 

Detailed Description

The table contains all supported algos.

Note
Please edit this class if new algorithm is added

Member Function Documentation

◆ findAlgo() [1/2]

AbstractJoinAlgoPtr OoOJoin::JoinAlgoTable::findAlgo ( size_t  idx)
inline

find a algorithm in the table according to its index

Parameters
idxThe index of algorithm
Returns
The algorithm

◆ findAlgo() [2/2]

AbstractJoinAlgoPtr OoOJoin::JoinAlgoTable::findAlgo ( std::string  name)
inline

find a algorithm in the table according to its index

Parameters
nameThe name of algorithm
Returns
The algorithm

◆ registerNewAlgo()

size_t OoOJoin::JoinAlgoTable::registerNewAlgo ( AbstractJoinAlgoPtr  anew)
inline

To register a new algorithm.

Parameters
anewThe new algorithm
Returns
The index of new registered algorithm

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