Class LogicalPlanWithNaryRootImpl
java.lang.Object
se.liu.ida.hefquin.engine.queryplan.logical.impl.LogicalPlanWithNaryRootImpl
- All Implemented Interfaces:
LogicalPlan,LogicalPlanWithNaryRoot
-
Constructor Summary
ConstructorsConstructorDescriptionLogicalPlanWithNaryRootImpl(NaryLogicalOp rootOp, List<LogicalPlan> subPlans) LogicalPlanWithNaryRootImpl(NaryLogicalOp rootOp, LogicalPlan... subPlans) -
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 an iterator over the same sub-plans that can be accessed viaLogicalPlan.getSubPlan(int).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
-
LogicalPlanWithNaryRootImpl
-
LogicalPlanWithNaryRootImpl
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getRootOperator
Description copied from interface:LogicalPlanReturns the root operator of this plan.- Specified by:
getRootOperatorin interfaceLogicalPlan- Specified by:
getRootOperatorin interfaceLogicalPlanWithNaryRoot
-
getExpectedVariables
Description copied from interface:LogicalPlanReturns the variables that can be expected in the solution mappings produced by this plan.- Specified by:
getExpectedVariablesin interfaceLogicalPlan
-
getSubPlans
Description copied from interface:LogicalPlanWithNaryRootConvenience method that always should return an iterator over the same sub-plans that can be accessed viaLogicalPlan.getSubPlan(int).- Specified by:
getSubPlansin interfaceLogicalPlanWithNaryRoot
-
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
-