Class LogicalPlanWithUnaryRootImpl
java.lang.Object
se.liu.ida.hefquin.engine.queryplan.base.impl.BaseForQueryPlan
se.liu.ida.hefquin.engine.queryplan.logical.impl.LogicalPlanWithUnaryRootImpl
- All Implemented Interfaces:
QueryPlan,LogicalPlan,LogicalPlanWithUnaryRoot
public class LogicalPlanWithUnaryRootImpl
extends BaseForQueryPlan
implements LogicalPlanWithUnaryRoot
-
Field Summary
Fields inherited from class se.liu.ida.hefquin.engine.queryplan.base.impl.BaseForQueryPlan
id -
Constructor Summary
ConstructorsConstructorDescriptionLogicalPlanWithUnaryRootImpl(UnaryLogicalOp rootOp, Iterable<QueryPlanProperty> qpInfo, LogicalPlan subPlan) Constructor. -
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.Convenience method that always should return the same as what is returned by callingLogicalPlan.getSubPlan(int)with a value of 0.getSubPlan(int i) Returns the i-th sub-plan of this plan, where i starts at index 0 (zero).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
-
LogicalPlanWithUnaryRootImpl
public LogicalPlanWithUnaryRootImpl(UnaryLogicalOp rootOp, Iterable<QueryPlanProperty> qpInfo, LogicalPlan subPlan) Constructor.- Parameters:
rootOp- - the root operator of the plan to be createdqpInfo- - query-planning-related properties for aQueryPlanningInfoobject for the plan to be created; may benull, in which case the plan does not get such an object initiallysubPlan- - the child plan of the plan to be created
-
-
Method Details
-
getRootOperator
Description copied from interface:QueryPlanReturns the root operator of this plan.- Specified by:
getRootOperatorin interfaceLogicalPlan- Specified by:
getRootOperatorin interfaceLogicalPlanWithUnaryRoot- 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
-
getSubPlan
Description copied from interface:LogicalPlanWithUnaryRootConvenience method that always should return the same as what is returned by callingLogicalPlan.getSubPlan(int)with a value of 0.- Specified by:
getSubPlanin interfaceLogicalPlanWithUnaryRoot
-
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 interfaceLogicalPlan- Specified by:
getSubPlanin interfaceQueryPlan- Throws:
NoSuchElementException
-