Class PhysicalOpParallelMultiLeftJoin
java.lang.Object
se.liu.ida.hefquin.engine.queryplan.physical.impl.PhysicalOpParallelMultiLeftJoin
- All Implemented Interfaces:
QueryPlanOperator,PhysicalOperator,UnaryPhysicalOp
A physical operator that implements a left-outer join for multiple optional
parts; as a unary operator, the operator has a single input, which provides
the solutions of the non-optional part.
The idea of the algorithm associated with this operator is to perform bind
joins for all the optional parts in parallel and then merge the results.
TODO: describe the algorithm in more detail.
The actual algorithm of this operator is implemented
in the
ExecOpParallelMultiwayLeftJoin class.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<LogicalOpRequest<?, ?>> checkApplicability(PhysicalPlan[] children) Checks whether awith the given list of physical plans can be implemented by the parallel multi-left-join (as captured by this physical operator).invalid reference
LogicalOpMultiwayLeftJoincreateExecOp(boolean collectExceptions, QueryPlanningInfo qpInfo, ExpectedVariables... inputVars) Creates and returns the executable operator to be used for this physical operator.booleangetExpectedVariables(ExpectedVariables... inputVars) Returns the variables that can be expected in the solution mappings produced by this operator in the case that the input(s) to this operator contain solutions mappings with the given set(s) of variables.inthashCode()toString()voidvisit(PhysicalPlanVisitor visitor)
-
Field Details
-
optionalParts
-
-
Constructor Details
-
PhysicalOpParallelMultiLeftJoin
-
-
Method Details
-
checkApplicability
Checks whether awith the given list of physical plans can be implemented by the parallel multi-left-join (as captured by this physical operator). If yes, this method returns the optional parts of that multi-left-join. If not, this method returnsinvalid reference
LogicalOpMultiwayLeftJoinnull. -
getExpectedVariables
Description copied from interface:QueryPlanOperatorReturns the variables that can be expected in the solution mappings produced by this operator in the case that the input(s) to this operator contain solutions mappings with the given set(s) of variables. The number ofExpectedVariablesobjects passed to this method must be in line with the degree of this operator (e.g., for a unary operator, exactly one such object must be passed).- Specified by:
getExpectedVariablesin interfaceQueryPlanOperator
-
createExecOp
public UnaryExecutableOp createExecOp(boolean collectExceptions, QueryPlanningInfo qpInfo, ExpectedVariables... inputVars) Description copied from interface:PhysicalOperatorCreates and returns the executable operator to be used for this physical operator. The implementation of this method has to create a newExecutableOperatorobject each time it is called. The givenQueryPlanningInfoobject is passed to the created executable operator (to be available via theExecutableOperator.getQueryPlanningInfo()method) and should be taken from the physical plan whose root operator is this physical operator. The given collectExceptions flag is passed to the executable operator and determines whether that operator collects its exceptions (seeExecutableOperator.getExceptionsCaughtDuringExecution()) or throws them immediately. The number ofExpectedVariablesobjects passed as arguments to this method must be in line with the degree of this operator (e.g., for a unary operator, exactly one such object must be passed).- Specified by:
createExecOpin interfacePhysicalOperator- Specified by:
createExecOpin interfaceUnaryPhysicalOp
-
visit
- Specified by:
visitin interfacePhysicalOperator
-
equals
-
hashCode
-
toString
-