FindPlan() private méthode

private FindPlan ( ObjectName reference ) : TablePlan
reference ObjectName
Résultat TablePlan
            public override void AddToPlanTree()
            {
                var op         = expression.ExpressionType;
                var columnName = expression.Left.AsReferenceName();
                var queryPlan  = expression.Right.AsQueryPlan();

                var tablePlan = planner.FindPlan(columnName);
                var leftPlan  = tablePlan.Plan;

                tablePlan.UpdatePlan(new NonCorrelatedAnyAllNode(leftPlan, queryPlan, new [] { columnName }, op));
            }
Exemple #2
0
            public override void AddToPlanTree()
            {
                var  op         = expression.ExpressionType;
                var  columnName = expression.Left.AsReferenceName();
                var  right      = expression.Right;
                bool isAll      = false;

                if (right is SqlQuantifiedExpression)
                {
                    var quantified = (SqlQuantifiedExpression)right;
                    isAll = quantified.ExpressionType == SqlExpressionType.All;
                    right = quantified.ValueExpression;
                }

                var queryPlan = right.AsQueryPlan();

                var tablePlan = planner.FindPlan(columnName);
                var leftPlan  = tablePlan.Plan;

                tablePlan.UpdatePlan(new NonCorrelatedAnyAllNode(leftPlan, queryPlan, new [] { columnName }, op, isAll));
            }
Exemple #3
0
            public override void AddToPlanTree()
            {
                var tablePlan = planner.FindPlan(columnName);

                tablePlan.UpdatePlan(new SimplePatternSelectNode(tablePlan.Plan, expression));
            }