Class AbstractRuleApplicationImpl
java.lang.Object
se.liu.ida.hefquin.engine.queryproc.impl.poptimizer.rewriting.rules.AbstractRuleApplicationImpl
- All Implemented Interfaces:
RandomizedSelection.WeightedObject,RuleApplication
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractRuleApplicationImpl(PhysicalPlan[] pathToTargetSubPlan, RewritingRule rule) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected PhysicalPlan[]getNewChildPlans(PhysicalPlan parent, PhysicalPlan rewrittenChildBefore, PhysicalPlan rewrittenChildAfter) getPlan()Returns the (complete) original plan to which the rule is meant to be applied.Returns the complete rewritten plan.getRule()Returns the actual rewriting rule to be applied.doubleprotected PhysicalPlanreconstructParentPlan(PhysicalPlan parent, PhysicalPlan rewrittenChildBefore, PhysicalPlan rewrittenChildAfter) protected abstract PhysicalPlanrewritePlan(PhysicalPlan plan)
-
Field Details
-
pathToTargetSubPlan
-
rule
-
-
Constructor Details
-
AbstractRuleApplicationImpl
-
-
Method Details
-
equals
-
getPlan
Description copied from interface:RuleApplicationReturns the (complete) original plan to which the rule is meant to be applied. Note that this is really the whole original plan, not just the specific subplan that is meant to be modified by the rule application.- Specified by:
getPlanin interfaceRuleApplication
-
getRule
Description copied from interface:RuleApplicationReturns the actual rewriting rule to be applied.@return- Specified by:
getRulein interfaceRuleApplication
-
getWeight
public double getWeight()- Specified by:
getWeightin interfaceRandomizedSelection.WeightedObject
-
getResultingPlan
Description copied from interface:RuleApplicationReturns the complete rewritten plan.- Specified by:
getResultingPlanin interfaceRuleApplication
-
reconstructParentPlan
protected PhysicalPlan reconstructParentPlan(PhysicalPlan parent, PhysicalPlan rewrittenChildBefore, PhysicalPlan rewrittenChildAfter) -
getNewChildPlans
protected PhysicalPlan[] getNewChildPlans(PhysicalPlan parent, PhysicalPlan rewrittenChildBefore, PhysicalPlan rewrittenChildAfter) -
rewritePlan
-