Class LogicalPlanWithNullaryRootImpl
java.lang.Object
se.liu.ida.hefquin.engine.queryplan.base.impl.BaseForQueryPlan
se.liu.ida.hefquin.engine.queryplan.logical.impl.LogicalPlanWithNullaryRootImpl
- All Implemented Interfaces:
QueryPlan,LogicalPlan,LogicalPlanWithNullaryRoot
public class LogicalPlanWithNullaryRootImpl
extends BaseForQueryPlan
implements LogicalPlanWithNullaryRoot
-
Field Summary
Fields inherited from class se.liu.ida.hefquin.engine.queryplan.base.impl.BaseForQueryPlan
id -
Constructor Summary
ConstructorsConstructorDescriptionLogicalPlanWithNullaryRootImpl(NullaryLogicalOp rootOp, Iterable<QueryPlanProperty> qpInfo) 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.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
-
LogicalPlanWithNullaryRootImpl
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 initially
-
-
Method Details
-
getRootOperator
Description copied from interface:QueryPlanReturns the root operator of this plan.- Specified by:
getRootOperatorin interfaceLogicalPlan- Specified by:
getRootOperatorin interfaceLogicalPlanWithNullaryRoot- 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
-
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
-