A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
pdb::CPlusPlusLambda< F, ReturnType, ParamOne, ParamTwo, ParamThree, ParamFour, ParamFive > Class Template Reference

#include <CPlusPlusLambda.h>

+ Inheritance diagram for pdb::CPlusPlusLambda< F, ReturnType, ParamOne, ParamTwo, ParamThree, ParamFour, ParamFive >:
+ Collaboration diagram for pdb::CPlusPlusLambda< F, ReturnType, ParamOne, ParamTwo, ParamThree, ParamFour, ParamFive >:

Public Member Functions

 CPlusPlusLambda (F arg, Handle< ParamOne > &input1, Handle< ParamTwo > &input2, Handle< ParamThree > &input3, Handle< ParamFour > &input4, Handle< ParamFive > &input5)
 
unsigned int getNumInputs () override
 
std::string getTypeOfLambda () override
 
GenericLambdaObjectPtr getChild (int which) override
 
int getNumChildren () override
 
 ~CPlusPlusLambda ()
 
ComputeExecutorPtr getExecutor (TupleSpec &inputSchema, TupleSpec &attsToOperateOn, TupleSpec &attsToIncludeInOutput) override
 
std::string toTCAPStringForCartesianJoin (int lambdaLabel, std::string computationName, int computationLabel, std::string &outputTupleSetName, std::vector< std::string > &outputColumns, std::string &outputColumnName, std::string &myLambdaName, MultiInputsBase *multiInputsComp) override
 
std::map< std::string,
std::string > 
getInfo () override
 
- Public Member Functions inherited from pdb::TypedLambdaObject< ReturnType >
virtual ~TypedLambdaObject ()=default
 
std::string getOutputType () override
 
- Public Member Functions inherited from pdb::GenericLambdaObject
virtual ~GenericLambdaObject ()=default
 
void setInputIndex (int i, unsigned int index)
 
virtual unsigned int getInputIndex (int i)
 
virtual ComputeExecutorPtr getExecutor (TupleSpec &inputSchema, TupleSpec &attsToOperateOn, TupleSpec &attsToIncludeInOutput, ComputeInfoPtr)
 
virtual ComputeExecutorPtr getLeftHasher (TupleSpec &inputSchema, TupleSpec &attsToOperateOn, TupleSpec &attsToIncludeInOutput)
 
virtual ComputeExecutorPtr getLeftHasher (TupleSpec &inputSchema, TupleSpec &attsToOperateOn, TupleSpec &attsToIncludeInOutput, ComputeInfoPtr)
 
virtual ComputeExecutorPtr getRightHasher (TupleSpec &inputSchema, TupleSpec &attsToOperateOn, TupleSpec &attsToIncludeInOutput)
 
virtual ComputeExecutorPtr getRightHasher (TupleSpec &inputSchema, TupleSpec &attsToOperateOn, TupleSpec &attsToIncludeInOutput, ComputeInfoPtr)
 
std::string getTCAPString (const std::string &inputTupleSetName, const std::vector< std::string > &inputColumnNames, const std::vector< std::string > &inputColumnsToApply, const std::string &outputTupleSetName, const std::vector< std::string > &outputColumns, const std::string &outputColumnName, const std::string &tcapOperation, const std::string &computationNameAndLabel, const std::string &lambdaNameAndLabel, const std::map< std::string, std::string > &info)
 
virtual std::string toTCAPString (std::vector< std::string > &inputTupleSetNames, std::vector< std::string > &inputColumnNames, std::vector< std::string > &inputColumnsToApply, std::vector< std::string > &childrenLambdaNames, int lambdaLabel, std::string computationName, int computationLabel, std::string &outputTupleSetName, std::vector< std::string > &outputColumns, std::string &outputColumnName, std::string &myLambdaName, MultiInputsBase *multiInputsComp=nullptr, bool amIPartOfJoinPredicate=false, bool amILeftChildOfEqualLambda=false, bool amIRightChildOfEqualLambda=false, std::string parentLambdaName="", bool isSelfJoin=false)
 

Private Attributes

myFunc
 
int numInputs = 0
 

Detailed Description

template<typename F, typename ReturnType, typename ParamOne = Nothing, typename ParamTwo = Nothing, typename ParamThree = Nothing, typename ParamFour = Nothing, typename ParamFive = Nothing>
class pdb::CPlusPlusLambda< F, ReturnType, ParamOne, ParamTwo, ParamThree, ParamFour, ParamFive >

Definition at line 122 of file CPlusPlusLambda.h.

Constructor & Destructor Documentation

template<typename F , typename ReturnType , typename ParamOne = Nothing, typename ParamTwo = Nothing, typename ParamThree = Nothing, typename ParamFour = Nothing, typename ParamFive = Nothing>
pdb::CPlusPlusLambda< F, ReturnType, ParamOne, ParamTwo, ParamThree, ParamFour, ParamFive >::CPlusPlusLambda ( arg,
Handle< ParamOne > &  input1,
Handle< ParamTwo > &  input2,
Handle< ParamThree > &  input3,
Handle< ParamFour > &  input4,
Handle< ParamFive > &  input5 
)
inline

Definition at line 131 of file CPlusPlusLambda.h.

+ Here is the call graph for this function:

template<typename F , typename ReturnType , typename ParamOne = Nothing, typename ParamTwo = Nothing, typename ParamThree = Nothing, typename ParamFour = Nothing, typename ParamFive = Nothing>
pdb::CPlusPlusLambda< F, ReturnType, ParamOne, ParamTwo, ParamThree, ParamFour, ParamFive >::~CPlusPlusLambda ( )
inline

Definition at line 178 of file CPlusPlusLambda.h.

Member Function Documentation

template<typename F , typename ReturnType , typename ParamOne = Nothing, typename ParamTwo = Nothing, typename ParamThree = Nothing, typename ParamFour = Nothing, typename ParamFive = Nothing>
GenericLambdaObjectPtr pdb::CPlusPlusLambda< F, ReturnType, ParamOne, ParamTwo, ParamThree, ParamFour, ParamFive >::getChild ( int  which)
inlineoverridevirtual

gets a particular child of this Lambda

Parameters
which- // TODO missing description
Returns
- // TODO missing description

Implements pdb::GenericLambdaObject.

Definition at line 170 of file CPlusPlusLambda.h.

template<typename F , typename ReturnType , typename ParamOne = Nothing, typename ParamTwo = Nothing, typename ParamThree = Nothing, typename ParamFour = Nothing, typename ParamFive = Nothing>
ComputeExecutorPtr pdb::CPlusPlusLambda< F, ReturnType, ParamOne, ParamTwo, ParamThree, ParamFour, ParamFive >::getExecutor ( TupleSpec inputSchema,
TupleSpec attsToOperateOn,
TupleSpec attsToIncludeInOutput 
)
inlineoverridevirtual

Used this gets an executor that appends the result of running this lambda to the end of each tuple

Parameters
inputSchema- // TODO missing description
attsToOperateOn- // TODO missing description
attsToIncludeInOutput- // TODO missing description
Returns
- // TODO missing description

Implements pdb::GenericLambdaObject.

Definition at line 181 of file CPlusPlusLambda.h.

+ Here is the call graph for this function:

template<typename F , typename ReturnType , typename ParamOne = Nothing, typename ParamTwo = Nothing, typename ParamThree = Nothing, typename ParamFour = Nothing, typename ParamFive = Nothing>
std::map<std::string, std::string> pdb::CPlusPlusLambda< F, ReturnType, ParamOne, ParamTwo, ParamThree, ParamFour, ParamFive >::getInfo ( )
inlineoverridevirtual

Returns the additional information about this lambda currently lambda type

Returns
the map

Implements pdb::GenericLambdaObject.

Definition at line 485 of file CPlusPlusLambda.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename F , typename ReturnType , typename ParamOne = Nothing, typename ParamTwo = Nothing, typename ParamThree = Nothing, typename ParamFour = Nothing, typename ParamFive = Nothing>
int pdb::CPlusPlusLambda< F, ReturnType, ParamOne, ParamTwo, ParamThree, ParamFour, ParamFive >::getNumChildren ( )
inlineoverridevirtual

one big technical problem is that when tuples are added to a hash table to be recovered at a later time, we we break a pipeline. The difficulty with this is that when we want to probe a hash table to find a set of hash values, we can't use the input TupleSet as a way to create the columns to store the result of the probe. The hash table needs to be able to create (from scratch) the columns that store the output. This is a problem, because the hash table has no information about the types of the objects that it contains. The way around this is that we have a function attached to each GenericLambdaObject that allows us to ask the GenericLambdaObject to try to add a column to a tuple set, of a specific type, where the type name is specified as a string. When the hash table needs to create an output TupleSet, it can ask all of the GenericLambdaObjects associated with a query to create the necessary columns, as a way to build up the output TupleSet. This method is how the hash table can ask for this. It takes tree args: the type of the column that the hash table wants the tuple set to build, the tuple set to add the column to, and the position where the column will be added. If the GenericLambdaObject cannot build the column (it has no knowledge of that type) a false is returned. Otherwise, a true is returned. virtual bool addColumnToTupleSet (std :: string &typeToMatch, TupleSetPtr addToMe, int posToAddTo) = 0; returns the number of children of this Lambda type

Returns
- // TODO missing description

Implements pdb::GenericLambdaObject.

Definition at line 174 of file CPlusPlusLambda.h.

template<typename F , typename ReturnType , typename ParamOne = Nothing, typename ParamTwo = Nothing, typename ParamThree = Nothing, typename ParamFour = Nothing, typename ParamFive = Nothing>
unsigned int pdb::CPlusPlusLambda< F, ReturnType, ParamOne, ParamTwo, ParamThree, ParamFour, ParamFive >::getNumInputs ( )
inlineoverridevirtual

Used to get number of inputs to this Lambda

Returns
- the number of inputs

Implements pdb::GenericLambdaObject.

Definition at line 162 of file CPlusPlusLambda.h.

+ Here is the caller graph for this function:

template<typename F , typename ReturnType , typename ParamOne = Nothing, typename ParamTwo = Nothing, typename ParamThree = Nothing, typename ParamFour = Nothing, typename ParamFive = Nothing>
std::string pdb::CPlusPlusLambda< F, ReturnType, ParamOne, ParamTwo, ParamThree, ParamFour, ParamFive >::getTypeOfLambda ( )
inlineoverridevirtual

returns the name of this LambdaBase type, as a string

Returns
- // TODO missing description

Implements pdb::GenericLambdaObject.

Definition at line 166 of file CPlusPlusLambda.h.

+ Here is the caller graph for this function:

template<typename F , typename ReturnType , typename ParamOne = Nothing, typename ParamTwo = Nothing, typename ParamThree = Nothing, typename ParamFour = Nothing, typename ParamFive = Nothing>
std::string pdb::CPlusPlusLambda< F, ReturnType, ParamOne, ParamTwo, ParamThree, ParamFour, ParamFive >::toTCAPStringForCartesianJoin ( int  lambdaLabel,
std::string  computationName,
int  computationLabel,
std::string &  outputTupleSetName,
std::vector< std::string > &  outputColumns,
std::string &  outputColumnName,
std::string &  myLambdaName,
MultiInputsBase multiInputsComp 
)
inlineoverridevirtual

// TODO missing description

Parameters
lambdaLabel- // TODO missing description
computationName- // TODO missing description
computationLabel- // TODO missing description
outputTupleSetName- // TODO missing description
outputColumns- // TODO missing description
outputColumnName- // TODO missing description
myLambdaName- // TODO missing description
multiInputsComp- // TODO missing description
Returns
- // TODO missing description

Reimplemented from pdb::GenericLambdaObject.

Definition at line 241 of file CPlusPlusLambda.h.

+ Here is the call graph for this function:

Member Data Documentation

template<typename F , typename ReturnType , typename ParamOne = Nothing, typename ParamTwo = Nothing, typename ParamThree = Nothing, typename ParamFour = Nothing, typename ParamFive = Nothing>
F pdb::CPlusPlusLambda< F, ReturnType, ParamOne, ParamTwo, ParamThree, ParamFour, ParamFive >::myFunc
private

Definition at line 125 of file CPlusPlusLambda.h.

template<typename F , typename ReturnType , typename ParamOne = Nothing, typename ParamTwo = Nothing, typename ParamThree = Nothing, typename ParamFour = Nothing, typename ParamFive = Nothing>
int pdb::CPlusPlusLambda< F, ReturnType, ParamOne, ParamTwo, ParamThree, ParamFour, ParamFive >::numInputs = 0
private

Definition at line 126 of file CPlusPlusLambda.h.


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