Class PhysicalPlanWithBinaryRootImpl
java.lang.Object
se.liu.ida.hefquin.engine.queryplan.physical.impl.PhysicalPlanWithBinaryRootImpl
- All Implemented Interfaces:
PhysicalPlan,PhysicalPlanWithBinaryRoot
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPhysicalPlanWithBinaryRootImpl(BinaryPhysicalOp rootOp, PhysicalPlan subPlan1, PhysicalPlan subPlan2) Instead of creating such a plan directly using this constructor, usePhysicalPlanFactory. -
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 callingPhysicalPlan.getSubPlan(int)with a value of 0.Convenience method that always should return the same as what is returned by callingPhysicalPlan.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
-
PhysicalPlanWithBinaryRootImpl
protected PhysicalPlanWithBinaryRootImpl(BinaryPhysicalOp rootOp, PhysicalPlan subPlan1, PhysicalPlan subPlan2) Instead of creating such a plan directly using this constructor, usePhysicalPlanFactory.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getRootOperator
Description copied from interface:PhysicalPlanReturns the root operator of this plan.- Specified by:
getRootOperatorin interfacePhysicalPlan- Specified by:
getRootOperatorin interfacePhysicalPlanWithBinaryRoot
-
getExpectedVariables
Description copied from interface:PhysicalPlanReturns the variables that can be expected in the solution mappings produced by this plan.- Specified by:
getExpectedVariablesin interfacePhysicalPlan
-
getSubPlan1
Description copied from interface:PhysicalPlanWithBinaryRootConvenience method that always should return the same as what is returned by callingPhysicalPlan.getSubPlan(int)with a value of 0.- Specified by:
getSubPlan1in interfacePhysicalPlanWithBinaryRoot
-
getSubPlan2
Description copied from interface:PhysicalPlanWithBinaryRootConvenience method that always should return the same as what is returned by callingPhysicalPlan.getSubPlan(int)with a value of 1.- Specified by:
getSubPlan2in interfacePhysicalPlanWithBinaryRoot
-
numberOfSubPlans
public int numberOfSubPlans()Description copied from interface:PhysicalPlanReturns 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 interfacePhysicalPlan
-
getSubPlan
Description copied from interface:PhysicalPlanReturns 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 interfacePhysicalPlan- Throws:
NoSuchElementException
-