Class PhysicalPlanWithBinaryRootImpl
java.lang.Object
se.liu.ida.hefquin.engine.queryplan.base.impl.BaseForQueryPlan
se.liu.ida.hefquin.engine.queryplan.physical.impl.PhysicalPlanWithBinaryRootImpl
- All Implemented Interfaces:
QueryPlan,PhysicalPlan,PhysicalPlanWithBinaryRoot
public class PhysicalPlanWithBinaryRootImpl
extends BaseForQueryPlan
implements PhysicalPlanWithBinaryRoot
-
Field Summary
Fields inherited from class se.liu.ida.hefquin.engine.queryplan.base.impl.BaseForQueryPlan
id -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPhysicalPlanWithBinaryRootImpl(BinaryPhysicalOp rootOp, QueryPlanningInfo qpInfo, PhysicalPlan subPlan1, PhysicalPlan subPlan2) Instead of creating such a plan directly using this constructor, usePhysicalPlanFactory.protectedPhysicalPlanWithBinaryRootImpl(BinaryPhysicalOp rootOp, PhysicalPlan subPlan1, PhysicalPlan subPlan2) Instead of creating such a plan directly using this constructor, usePhysicalPlanFactory. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.intReturns the number of sub-plans that this plan has (considering sub-plans that are direct children of the root operator of this plan).Methods inherited from class se.liu.ida.hefquin.engine.queryplan.base.impl.BaseForQueryPlan
equals, getID, getQueryPlanningInfo, hashCode, hasQueryPlanningInfoMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface se.liu.ida.hefquin.engine.queryplan.base.QueryPlan
getID, getQueryPlanningInfo, hasQueryPlanningInfo, isSamePlan
-
Constructor Details
-
PhysicalPlanWithBinaryRootImpl
protected PhysicalPlanWithBinaryRootImpl(BinaryPhysicalOp rootOp, PhysicalPlan subPlan1, PhysicalPlan subPlan2) Instead of creating such a plan directly using this constructor, usePhysicalPlanFactory. -
PhysicalPlanWithBinaryRootImpl
protected PhysicalPlanWithBinaryRootImpl(BinaryPhysicalOp rootOp, QueryPlanningInfo qpInfo, PhysicalPlan subPlan1, PhysicalPlan subPlan2) Instead of creating such a plan directly using this constructor, usePhysicalPlanFactory.This constructor should be used only if the plan is meant to be constructed with an already existing
QueryPlanningInfoobject. Since this object may later be extended with additional properties for this plan, it is important not to create multiple plans with the sameQueryPlanningInfoobject.
-
-
Method Details
-
getRootOperator
Description copied from interface:QueryPlanReturns the root operator of this plan.- Specified by:
getRootOperatorin interfacePhysicalPlan- Specified by:
getRootOperatorin interfacePhysicalPlanWithBinaryRoot- Specified by:
getRootOperatorin interfaceQueryPlan
-
getExpectedVariables
Description copied from interface:QueryPlanReturns the variables that can be expected in the solution mappings produced by this plan.- Specified by:
getExpectedVariablesin interfaceQueryPlan
-
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:QueryPlanReturns 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 interfaceQueryPlan
-
getSubPlan
Description copied from interface:QueryPlanReturns 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- Specified by:
getSubPlanin interfaceQueryPlan- Throws:
NoSuchElementException
-