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
LogicalPlanBuilder.h File Reference
#include <memory>
#include <vector>
#include "Instruction.h"
#include "SafeResult.h"
#include "AttList.h"
#include "LogicalPlan.h"
#include "TupleSpec.h"
+ Include dependency graph for LogicalPlanBuilder.h:

Go to the source code of this file.

Functions

shared_ptr< SafeResult
< LogicalPlan > > 
buildLogicalPlan (shared_ptr< vector< InstructionPtr >> instructions)
 
shared_ptr< SafeResult
< LogicalPlan > > 
buildLogicalPlan (string tcapProgram)
 

Function Documentation

shared_ptr<SafeResult<LogicalPlan> > buildLogicalPlan ( shared_ptr< vector< InstructionPtr >>  instructions)

Translates each of the given instructions into an instance one of: Input, Output, Computation and agregates the results into the returned LogicalPlan.

Load turns into Input Store turns into Output everything other instruction variant turns into a Computation.

Parameters
instructionsthe list of instructions to translate
Returns
A LogicalPlan representation of the given instructions or a failure state if the translation failed.
shared_ptr<SafeResult<LogicalPlan> > buildLogicalPlan ( string  tcapProgram)

Translates the given TCAP program into an equivalent LogicalPlan.

Parameters
tcapProgramthe TCAP program to translate.
Returns
A LogicalPlan representation of the given program or a failure state if the translation failed.