DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Private Attributes | List of all members
Deveel.Data.Sql.Query.QueryTablePlanner.SimpleSubQueryPlan Class Reference
Inheritance diagram for Deveel.Data.Sql.Query.QueryTablePlanner.SimpleSubQueryPlan:
Deveel.Data.Sql.Query.QueryTablePlanner.ExpressionPlan Deveel.Data.Sql.Query.IExpressionPlan

Public Member Functions

 SimpleSubQueryPlan (QueryTablePlanner planner, SqlBinaryExpression expression)
 
override void AddToPlanTree ()
 
- Public Member Functions inherited from Deveel.Data.Sql.Query.QueryTablePlanner.ExpressionPlan
int CompareTo (IExpressionPlan other)
 

Private Attributes

readonly QueryTablePlanner planner
 
readonly SqlBinaryExpression expression
 

Additional Inherited Members

- Protected Member Functions inherited from Deveel.Data.Sql.Query.QueryTablePlanner.ExpressionPlan
 ExpressionPlan (float optimizeFactor)
 
- Properties inherited from Deveel.Data.Sql.Query.QueryTablePlanner.ExpressionPlan
float OptimizeFactor [get, private set]
 
- Properties inherited from Deveel.Data.Sql.Query.IExpressionPlan
float OptimizeFactor [get]
 

Detailed Description

Definition at line 1002 of file QueryTablePlanner.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Query.QueryTablePlanner.SimpleSubQueryPlan.SimpleSubQueryPlan ( QueryTablePlanner  planner,
SqlBinaryExpression  expression 
)
inline

Definition at line 1006 of file QueryTablePlanner.cs.

1007  : base(0.3f) {
1008  this.planner = planner;
1009  this.expression = expression;
1010  }

Member Function Documentation

override void Deveel.Data.Sql.Query.QueryTablePlanner.SimpleSubQueryPlan.AddToPlanTree ( )
inlinevirtual

Implements Deveel.Data.Sql.Query.QueryTablePlanner.ExpressionPlan.

Definition at line 1012 of file QueryTablePlanner.cs.

1012  {
1013  var op = expression.ExpressionType;
1014  var columnName = expression.Left.AsReferenceName();
1015  var queryPlan = expression.Right.AsQueryPlan();
1016 
1017  var tablePlan = planner.FindPlan(columnName);
1018  var leftPlan = tablePlan.Plan;
1019 
1020  tablePlan.UpdatePlan(new NonCorrelatedAnyAllNode(leftPlan, queryPlan, new []{columnName}, op));
1021  }
TablePlan FindPlan(ObjectName reference)
IQueryPlanNode Plan
Returns the plan for this table source.
Definition: TablePlan.cs:41

Member Data Documentation

readonly SqlBinaryExpression Deveel.Data.Sql.Query.QueryTablePlanner.SimpleSubQueryPlan.expression
private

Definition at line 1004 of file QueryTablePlanner.cs.

readonly QueryTablePlanner Deveel.Data.Sql.Query.QueryTablePlanner.SimpleSubQueryPlan.planner
private

Definition at line 1003 of file QueryTablePlanner.cs.


The documentation for this class was generated from the following file: