Class LogicalPlanWithBinaryRootImpl
java.lang.Object
se.liu.ida.hefquin.engine.queryplan.logical.impl.LogicalPlanWithBinaryRootImpl
- All Implemented Interfaces:
 LogicalPlan,LogicalPlanWithBinaryRoot
- 
Constructor Summary
ConstructorsConstructorDescriptionLogicalPlanWithBinaryRootImpl(BinaryLogicalOp rootOp, LogicalPlan subPlan1, LogicalPlan subPlan2)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the variables that can be expected in the solution mappings produced by this plan.Returns the root operator of this plan.getSubPlan(int i) Returns the i-th sub-plan of this plan, where i starts at index 0 (zero).Convenience method that always should return the same as what is returned by callingLogicalPlan.getSubPlan(int)with a value of 0.Convenience method that always should return the same as what is returned by callingLogicalPlan.getSubPlan(int)with a value of 1.inthashCode()intReturns the number of sub-plans that this plan has (considering sub-plans that are direct children of the root operator of this plan). 
- 
Constructor Details
- 
LogicalPlanWithBinaryRootImpl
public LogicalPlanWithBinaryRootImpl(BinaryLogicalOp rootOp, LogicalPlan subPlan1, LogicalPlan subPlan2)  
 - 
 - 
Method Details
- 
equals
 - 
hashCode
 - 
getRootOperator
Description copied from interface:LogicalPlanReturns the root operator of this plan.- Specified by:
 getRootOperatorin interfaceLogicalPlan- Specified by:
 getRootOperatorin interfaceLogicalPlanWithBinaryRoot
 - 
getExpectedVariables
Description copied from interface:LogicalPlanReturns the variables that can be expected in the solution mappings produced by this plan.- Specified by:
 getExpectedVariablesin interfaceLogicalPlan
 - 
getSubPlan1
Description copied from interface:LogicalPlanWithBinaryRootConvenience method that always should return the same as what is returned by callingLogicalPlan.getSubPlan(int)with a value of 0.- Specified by:
 getSubPlan1in interfaceLogicalPlanWithBinaryRoot
 - 
getSubPlan2
Description copied from interface:LogicalPlanWithBinaryRootConvenience method that always should return the same as what is returned by callingLogicalPlan.getSubPlan(int)with a value of 1.- Specified by:
 getSubPlan2in interfaceLogicalPlanWithBinaryRoot
 - 
numberOfSubPlans
public int numberOfSubPlans()Description copied from interface:LogicalPlanReturns the number of sub-plans that this plan has (considering sub-plans that are direct children of the root operator of this plan).- Specified by:
 numberOfSubPlansin interfaceLogicalPlan
 - 
getSubPlan
Description copied from interface:LogicalPlanReturns the i-th sub-plan of this plan, where i starts at index 0 (zero). If the plan has fewer sub-plans (or no sub-plans at all), then aNoSuchElementExceptionwill be thrown.- Specified by:
 getSubPlanin interfaceLogicalPlan- Throws:
 NoSuchElementException
 
 -