System\Data\Query\PlanCompiler\TransformationRules.cs (116)
114this.Command.RecomputeNodeInfo(node);
129return this.Command.CreateNode(this.Command.CreateVarRefOp(op.Var));
133return OpCopier.Copy(this.Command, node);
162Command.RecomputeNodeInfo(relOpAncestor);
163ExtendedNodeInfo nodeInfo = Command.GetExtendedNodeInfo(relOpAncestor);
343VarRefOp varRefOp = this.Command.CreateVarRefOp(conditionVar);
344Node varRefNode = this.Command.CreateNode(varRefOp);
345Node whenNode = this.Command.CreateNode(this.Command.CreateConditionalOp(OpType.IsNull), varRefNode);
347Node thenNode = this.Command.CreateNode(this.Command.CreateNullOp(elseNode.Op.Type));
348Node caseNode = this.Command.CreateNode(this.Command.CreateCaseOp(elseNode.Op.Type), whenNode, thenNode, elseNode);
439Command.RecomputeNodeInfo(n);
460NodeInfo nodeInfo = this.Command.GetNodeInfo(subTree);
513Command.RecomputeNodeInfo(n);
524NodeInfo nodeInfo = Command.GetNodeInfo(node);
1006newNode = context.Command.CreateNode(caseOp, newNodeArgs);
1085ConstantPredicateOp newOp = context.Command.CreateConstantPredicateOp(result);
1086newNode = context.Command.CreateNode(newOp);
1144ConstantPredicateOp constOp = context.Command.CreateConstantPredicateOp((bool)match);
1145newNode = context.Command.CreateNode(constOp);
1207newNode = context.Command.CreateNode(context.Command.CreateConstantPredicateOp(!pred.Value));
1260newNode = context.Command.CreateNode(context.Command.CreateFalseOp());
1277newNode = context.Command.CreateNode(context.Command.CreateTrueOp());
1298newNode = context.Command.CreateNode(context.Command.CreateNullOp(castNullOp.Op.Type));
1322Command command = context.Command;
1330newNode = command.CreateNode(context.Command.CreateFalseOp());
1433Node newAndNode = context.Command.CreateNode(
1434context.Command.CreateConditionalOp(OpType.And),
1437newNode = context.Command.CreateNode(context.Command.CreateFilterOp(), filterNode.Child0.Child0, newAndNode);
1499Node newFilterNode = trc.Command.CreateNode(trc.Command.CreateFilterOp(), projectNode.Child0, remappedPredicateNode);
1500Node newProjectNode = trc.Command.CreateNode(projectNode.Op, newFilterNode, projectNode.Child1);
1549Node pushdownPredicate = GetPushdownPredicate(trc.Command, filterNode, null, out nonPushdownPredicate);
1580Node varRefNode = trc.Command.CreateNode(trc.Command.CreateVarRefOp(kv.Value));
1595trc.Command.RecomputeNodeInfo(newPredicateNode);
1598Node newFilterNode = trc.Command.CreateNode(
1599trc.Command.CreateFilterOp(),
1606Node newSetOpNode = trc.Command.CreateNode(setOpNode.Op, newSetOpChildren);
1615newNode = trc.Command.CreateNode(trc.Command.CreateFilterOp(), newSetOpNode, nonPushdownPredicate);
1649Node pushdownPredicate = GetPushdownPredicate(context.Command, filterNode, null, out nonPushdownPredicate);
1660Node pushdownFilterNode = context.Command.CreateNode(context.Command.CreateFilterOp(), distinctNode.Child0, pushdownPredicate);
1661Node newDistinctNode = context.Command.CreateNode(distinctNode.Op, pushdownFilterNode);
1669newNode = context.Command.CreateNode(context.Command.CreateFilterOp(), newDistinctNode, nonPushdownPredicate);
1721Node pushdownPredicate = GetPushdownPredicate(context.Command, filterNode, groupByOp.Keys, out nonPushdownPredicate);
1742Node subFilterNode = trc.Command.CreateNode(trc.Command.CreateFilterOp(), groupByNode.Child0, remappedPushdownPredicate);
1743Node newGroupByNode = trc.Command.CreateNode(groupByNode.Op, subFilterNode, groupByNode.Child1, groupByNode.Child2);
1756newNode = trc.Command.CreateNode(trc.Command.CreateFilterOp(), newGroupByNode, nonPushdownPredicate);
1810Command command = trc.Command;
1963Command command = trc.Command;
2029ExtendedNodeInfo childNodeInfo = trc.Command.GetExtendedNodeInfo(n.Child0);
2031VarVec newVars = trc.Command.CreateVarVec();
2034NullOp nullConst = trc.Command.CreateNullOp(v.Type);
2035Node constNode = trc.Command.CreateNode(nullConst);
2037Node varDefNode = trc.Command.CreateVarDefNode(constNode, out computedVar);
2045NullOp nullConst = trc.Command.CreateNullOp(trc.Command.BooleanType);
2046Node constNode = trc.Command.CreateNode(nullConst);
2048Node varDefNode = trc.Command.CreateVarDefNode(constNode, out computedVar);
2053Node singleRowTableNode = trc.Command.CreateNode(trc.Command.CreateSingleRowTableOp());
2056Node varDefListNode = trc.Command.CreateNode(trc.Command.CreateVarDefListOp(), varDefNodeList);
2057ProjectOp projectOp = trc.Command.CreateProjectOp(newVars);
2058Node projectNode = trc.Command.CreateNode(projectOp, n, varDefListNode);
2137Node newVarDefListNode = trc.Command.CreateNode(trc.Command.CreateVarDefListOp());
2144trc.Command.RecomputeNodeInfo(varDefNode);
2149ExtendedNodeInfo projectNodeInfo = trc.Command.GetExtendedNodeInfo(projectNode);
2189NodeInfo nodeInfo = context.Command.GetNodeInfo(n);
2231Command command = trc.Command;
2338Command command = trc.Command;
2437Command command = context.Command;
2518Command command = context.Command;
2570varDefNode.Child0 = context.Command.CreateNode(context.Command.CreateVarRefOp(sentinelVar));
2599context.Command.RecomputeNodeInfo(projectNode);
2643Command command = context.Command;
2654context.Command.RecomputeNodeInfo(applyNode);
2710ExtendedNodeInfo inputNodeInfo = context.Command.GetExtendedNodeInfo(projectNode.Child0);
2725Command command = context.Command;
2832Command command = context.Command;
2918Command command = context.Command;
3312applyNode.Op = context.Command.CreateOuterApplyOp();
3395Command command = trc.Command;
3433newJoinNode = context.Command.CreateNode(joinNode.Op, joinNode.Child0.Child0, joinNode.Child1.Child0, joinConditionNode);
3437newJoinNode = context.Command.CreateNode(joinNode.Op, joinNode.Child0.Child0, joinNode.Child1.Child0);
3488context.Command.RecomputeNodeInfo(joinNode);
3490newNode = context.Command.CreateNode(projectOp, joinNode, projectNode.Child1);
3555Command command = trc.Command;
3708ExtendedNodeInfo childNodeInfo = context.Command.GetExtendedNodeInfo(singleRowNode.Child0);
3724Predicate predicate = new Predicate(context.Command, singleRowNode.Child0.Child1);
3758context.Command.RecomputeNodeInfo(singleRowNode);
3814bool leftChildIsEmptySet = context.Command.GetExtendedNodeInfo(setOpNode.Child0).MaxRows == RowCount.Zero;
3815bool rightChildIsEmptySet = context.Command.GetExtendedNodeInfo(setOpNode.Child1).MaxRows == RowCount.Zero;
3889Command command = trc.Command;
3977Command command = ((TransformationRulesContext)context).Command;
4177Command command = context.Command;
4231var rootOp = context.Command.Root.Op as PhysicalProjectOp;
4273var command = context.Command;
4349ExtendedNodeInfo nodeInfo = ((TransformationRulesContext)context).Command.GetExtendedNodeInfo(n.Child0);
4388ExtendedNodeInfo nodeInfo = ((TransformationRulesContext)context).Command.GetExtendedNodeInfo(n.Child0);
4428Command command = context.Command;