Package com.mckoi.database.interpret
Class Planner.ExpressionPlan
- java.lang.Object
-
- com.mckoi.database.interpret.Planner.ExpressionPlan
-
- All Implemented Interfaces:
java.lang.Comparable
- Direct Known Subclasses:
Planner.QueryTableSetPlanner.ComplexSingleExpressionPlan,Planner.QueryTableSetPlanner.ConstantExpressionPlan,Planner.QueryTableSetPlanner.ExhaustiveJoinExpressionPlan,Planner.QueryTableSetPlanner.ExhaustiveSelectExpressionPlan,Planner.QueryTableSetPlanner.ExhaustiveSubQueryExpressionPlan,Planner.QueryTableSetPlanner.SimplePatternExpressionPlan,Planner.QueryTableSetPlanner.SimpleSelectExpressionPlan,Planner.QueryTableSetPlanner.SimpleSingleExpressionPlan,Planner.QueryTableSetPlanner.SimpleSubQueryExpressionPlan,Planner.QueryTableSetPlanner.StandardJoinExpressionPlan,Planner.QueryTableSetPlanner.SubLogicExpressionPlan
- Enclosing class:
- Planner
abstract static class Planner.ExpressionPlan extends java.lang.Object implements java.lang.ComparableAn abstract class that represents an expression to be added into a plan. Many sets of expressions can be added into the plan tree in any order, however it is often desirable to add some more intensive expressions higher up the branches. This object allows us to order expressions by optimization value. More optimizable expressions are put near the leafs of the plan tree and least optimizable and put near the top.
-
-
Field Summary
Fields Modifier and Type Field Description private floatoptimizable_valueHow optimizable an expression is.
-
Constructor Summary
Constructors Constructor Description ExpressionPlan()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaddToPlanTree()Adds this expression into the plan tree.intcompareTo(java.lang.Object ob)floatgetOptimizableValue()Returns the optimizable value for this plan.voidsetOptimizableValue(float v)Sets the optimizable value of this plan.
-
-
-
Method Detail
-
setOptimizableValue
public void setOptimizableValue(float v)
Sets the optimizable value of this plan.
-
getOptimizableValue
public float getOptimizableValue()
Returns the optimizable value for this plan.
-
addToPlanTree
public abstract void addToPlanTree()
Adds this expression into the plan tree.
-
compareTo
public int compareTo(java.lang.Object ob)
- Specified by:
compareToin interfacejava.lang.Comparable
-
-