276 references to OpType
System.Data.Entity (276)
System\Data\Common\EntityUtil.cs (3)
462return NotSupported(System.Data.Entity.Strings.ADP_KeysRequiredForJoinOverNest(op.OpType.ToString())); 468return NotSupported(System.Data.Entity.Strings.ADP_NestingNotSupported(parentOp.OpType.ToString(), childOp.OpType.ToString()));
System\Data\Mapping\FunctionImportMappingComposable.cs (2)
110PlanCompiler.Assert(rootProject.Op.OpType == OpType.PhysicalProject, "Expected a physical projectOp at the root of the tree - found " + rootProject.Op.OpType);
System\Data\Mapping\ViewGeneration\GeneratedView.cs (2)
215PlanCompiler.Assert(itree.Root.Op.OpType == OpType.PhysicalProject, 216"Expected a physical projectOp at the root of the tree - found " + itree.Root.Op.OpType);
System\Data\Query\InternalTrees\Command.cs (1)
1684Debug.Assert(inputNode.Op.IsRelOp, "Expected a RelOp. Found " + inputNode.Op.OpType);
System\Data\Query\InternalTrees\Dump.cs (4)
462if (OpType.UnionAll == op.OpType) { 843_dumper.WriteString(AutoString.ToString(op.OpType)); 1020_nodeName = AutoString.ToString(op.OpType); 1032_nodeName = AutoString.ToString(op.OpType);
System\Data\Query\InternalTrees\NodeInfo.cs (25)
176m_hashValue = (m_hashValue << 4) ^ ((int)n.Op.OpType); // include the optype somehow 431return (definition.Op.OpType == OpType.Constant 432|| definition.Op.OpType == OpType.InternalConstant 433|| definition.Op.OpType == OpType.NullSentinel 434|| definition.Op.OpType == OpType.VarRef 526if (n.Child0.Op.OpType == OpType.VarDef && n.Child0.Child0.Op.OpType == OpType.Function && op.Table.Keys.Count > 0) 564Debug.Assert(varDefListNode.Op.OpType == OpType.VarDefList); 860if (!(op.OpType == OpType.InnerJoin || 861op.OpType == OpType.LeftOuterJoin || 862op.OpType == OpType.FullOuterJoin)) 889if (op.OpType == OpType.InnerJoin || op.OpType == OpType.LeftOuterJoin) 893if (op.OpType == OpType.InnerJoin) 902if (op.OpType == OpType.FullOuterJoin) 919if (op.OpType == OpType.LeftOuterJoin) 971if (op.OpType == OpType.CrossApply) 988RowCount minRows = (op.OpType == OpType.CrossApply) ? RowCount.Zero : leftRelOpNodeInfo.MinRows; 1029if (op.OpType == OpType.UnionAll) 1035if (op.OpType == OpType.Intersect || op.OpType == OpType.Except) 1098if (op.OpType != OpType.Except) 1101if (op.OpType == OpType.Intersect) 1156if (OpType.ConstrainedSort == op.OpType && 1157OpType.Constant == n.Child2.Op.OpType &&
System\Data\Query\InternalTrees\OpCopier.cs (4)
397return CopyDefault(m_destCmd.CreateComparisonOp(op.OpType), n); 524return CopyDefault(m_destCmd.CreateConditionalOp(op.OpType), n); 535return CopyDefault(m_destCmd.CreateArithmeticOp(op.OpType, op.Type), n); 934switch(op.OpType)
System\Data\Query\InternalTrees\Ops.cs (2)
539return (other.OpType == this.OpType && TypeSemantics.IsStructurallyEqual(this.Type, other.Type));
System\Data\Query\InternalTrees\Rule.cs (5)
130return node.Op.OpType == this.RuleOpType; 152: base(pattern.Op.OpType, processDelegate) 163if (pattern.Op.OpType == OpType.Leaf) 165if (pattern.Op.OpType != original.Op.OpType)
System\Data\Query\InternalTrees\RuleProcessor.cs (1)
52foreach (Rule r in rules[(int)currentNode.Op.OpType])
System\Data\Query\InternalTrees\ScalarOps.cs (2)
69this.OpType == other.OpType &&
System\Data\Query\PlanCompiler\AggregatePushdown.cs (13)
335if (inputNode.Op.OpType == OpType.SoftCast) 341if (inputNode.Op.OpType == OpType.Collect) 405if (n.Child0.Op.OpType != OpType.VarRef) 433while (currentNode.Child0.Op.OpType == OpType.Project) 450if (currentNode.Child0.Op.OpType != OpType.Unnest) 508while (currentNode.Op.OpType == OpType.Cast) 512return PlanCompilerUtil.IsConstantBaseOp(currentNode.Op.OpType); 691else if (definingNodeOp.OpType == OpType.NewRecord) 815if (node.Op.OpType != OpType.VarRef) 933if (groupByAncestor.Op.OpType == OpType.Project) 955if (node.Op.OpType != OpType.Project 956&& node.Op.OpType != OpType.Filter 957&& node.Op.OpType != OpType.ConstrainedSort
System\Data\Query\PlanCompiler\CTreeGenerator.cs (14)
736if (OpType.UnaryMinus == op.OpType) 748switch (op.OpType) 789PlanCompiler.Assert(resultExpr != null, string.Format(CultureInfo.InvariantCulture, "ArithmeticOp OpType not recognized: {0}", Enum.GetName(typeof(OpType), op.OpType))); 851switch (op.OpType) 897PlanCompiler.Assert(compExpr != null, string.Format(CultureInfo.InvariantCulture, "ComparisonOp OpType not recognized: {0}", Enum.GetName(typeof(OpType), op.OpType))); 911switch (op.OpType) 956PlanCompiler.Assert(condExpr != null, string.Format(CultureInfo.InvariantCulture, "ConditionalOp OpType not recognized: {0}", Enum.GetName(typeof(OpType), op.OpType))); 1322PlanCompiler.Assert(n.Child0.Op.OpType == OpType.VarDef, 1355if (relOpNode.Op.OpType == OpType.Project) 1590bool nullSkip = (OpType.Null == n.Child1.Op.OpType); 1591bool nullLimit = (OpType.Null == n.Child2.Op.OpType); 1836if (joinInputNode.Op.OpType == OpType.Filter && joinInputNode.Child0.Op.OpType == OpType.ScanTable) 2254if (n.Child0.Op.OpType != OpType.Project)
System\Data\Query\PlanCompiler\ITreeGenerator.cs (7)
728if (input.Op.OpType == OpType.Project) 1351if (OpType.ConstrainedSort == inputNode.Op.OpType && 1352OpType.Null == inputNode.Child2.Op.OpType) 1372else if (OpType.Sort == inputNode.Op.OpType) 1429if (OpType.Project == inputNode.Op.OpType 1431|| (OpType.Sort == inputNode.Child0.Op.OpType 1432|| OpType.ConstrainedSort == inputNode.Child0.Op.OpType)))
System\Data\Query\PlanCompiler\JoinGraph.cs (13)
431OpType joinOpType = joinNode.Node.Op.OpType; 644if (joinNode.Op.OpType == OpType.FullOuterJoin) 687switch (node.Op.OpType) 846OpType opType = joinNode.Node.Op.OpType; 889if (joinNode.Node.Op.OpType == OpType.FullOuterJoin || 933switch (node.Node.Op.OpType) 1133foreach (AugmentedJoinNode augmentedJoinNode in m_vertexes.OfType<AugmentedJoinNode>().Where(j => j.Node.Op.OpType == OpType.LeftOuterJoin && j.JoinEdges.Count > 0)) 1185if (parent.Node.Op.OpType != OpType.LeftOuterJoin || parent.Children[0] != currentNode) 1399(disallowAnyJoin || currentParent.Node.Op.OpType != OpType.LeftOuterJoin || currentParent.Children[0] != currentNode) 1427if (currentNode.Parent.Node.Op.OpType == OpType.LeftOuterJoin && 2504if (joinNode.Node.Op.OpType == OpType.CrossJoin) 2520if (leftNode != null && rightNode == null && joinNode.Node.Op.OpType == OpType.LeftOuterJoin) 2637switch (augmentedNode.Node.Op.OpType)
System\Data\Query\PlanCompiler\KeyPullup.cs (2)
255if (OpType.UnionAll == branchNode.Op.OpType) 290if (OpType.UnionAll == branchNode.Op.OpType && null != ((UnionAllOp)branchNode.Op).BranchDiscriminator)
System\Data\Query\PlanCompiler\NestPullup.cs (31)
103PlanCompiler.Assert(Command.Root.Op.OpType == OpType.PhysicalProject, "root node is not physicalProject?"); 130PlanCompiler.Assert(n.Op.OpType != OpType.SingleStreamNest, "illegal singleStreamNest?"); 131return (n.Op.OpType == OpType.SingleStreamNest || n.Op.OpType == OpType.MultiStreamNest); 294if (n.Child0.Op.OpType == OpType.VarRef) 336if (chi.Op.OpType == OpType.Collect) 340else if (chi.Op.OpType == OpType.VarRef) 437if (OpType.SingleStreamNest == chi.Op.OpType) 463if (op.OpType != OpType.MultiStreamNest && chi.Op.IsRelOp) 486if (chi.Op.OpType == OpType.MultiStreamNest) 499if ((op.OpType == OpType.FullOuterJoin) 500|| ((op.OpType == OpType.LeftOuterJoin || op.OpType == OpType.OuterApply) && n.Child1.Op.OpType == OpType.MultiStreamNest)) 570while (newFilterChild.Op.OpType == OpType.MultiStreamNest) 814if (n.Child0.Op.OpType == OpType.Sort) 856if (newNode.Op.OpType == OpType.Project && IsNestOpNode(newNode.Child0)) 999if (OpType.Collect == definingExprNode.Op.OpType) 1002PlanCompiler.Assert(OpType.PhysicalProject == definingExprNode.Child0.Op.OpType, "collect without physicalProject?"); 1010else if (OpType.VarRef == definingExprNode.Op.OpType) 1246if (OpType.Sort == nestOpInput.Op.OpType) 1745PlanCompiler.Assert(n.Child0.Op.OpType == OpType.VarDef, "Unnest without VarDef input?"); 1750if (OpType.Function == newNode.Op.OpType) 1757else if (OpType.Collect == newNode.Op.OpType) 1764PlanCompiler.Assert(newNode.Op.OpType == OpType.PhysicalProject, "collect without physicalProject?"); 1769else if (OpType.VarRef == newNode.Op.OpType) 1783PlanCompiler.Assert(newNode.Op.OpType == OpType.PhysicalProject, "driving node is not physicalProject?"); 1787throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.InvalidInternalTree, 2, newNode.Op.OpType); 1796if (newNode.Op.OpType == OpType.Sort) 2130if (chi.Op.OpType == OpType.MultiStreamNest) 2754if (command.Root.Child0 != null && command.Root.Child0.Op.OpType == OpType.Sort)
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (29)
202PlanCompiler.Assert(rootNode.Op.OpType == OpType.PhysicalProject, "root node is not PhysicalProjectOp?"); 310if (inputOp.OpType == OpType.Null) 375while (node.Op.OpType == OpType.SoftCast) 825PlanCompiler.Assert(definingExprNode.Op.OpType != OpType.Function, "Flattening of TVF output is not allowed."); 1200switch (n.Op.OpType) 1333if (chi.HasChild0 && chi.Child0.Op.OpType == OpType.Function) 1733PlanCompiler.Assert(n.Child0.Op.OpType == OpType.NewRecord, "Expected a record constructor here. Found " + n.Child0.Op.OpType + " instead"); 1997if (resultNode.Op.OpType != OpType.NewRecord) 2129PlanCompiler.Assert(op.OpType == OpType.EQ || op.OpType == OpType.NE, "non-equality comparison of structured types?"); 2156ComparisonOp newCompOp = m_command.CreateComparisonOp(op.OpType); 2176if (op.OpType != OpType.IsNull) 2283PlanCompiler.Assert(op.OpType == OpType.GetEntityRef || op.OpType == OpType.GetRefKey, "Expecting GetEntityRef or GetRefKey ops"); 2297if (op.OpType == OpType.GetRefKey) 2303PlanCompiler.Assert(op.OpType == OpType.GetEntityRef, 2304"Expected OpType.GetEntityRef: Found " + op.OpType); 2333PlanCompiler.Assert(op.OpType == OpType.Property || op.OpType == OpType.RelProperty, 2334"Unexpected optype: " + op.OpType); 2681PlanCompiler.Assert(op.OpType == OpType.NewInstance || op.OpType == OpType.NewRecord || op.OpType == OpType.DiscriminatedNewEntity || op.OpType == OpType.NewEntity, 2682"unexpected op: " + op.OpType + "?"); 2695if (op.OpType == OpType.NewRecord) 2700else if (op.OpType == OpType.DiscriminatedNewEntity) 2754PlanCompiler.Assert(newEntityOp != null, "unexpected optype:" + op.OpType);
System\Data\Query\PlanCompiler\Normalizer.cs (2)
171if (OpType.SoftCast == argNode.Op.OpType) 176while (OpType.SoftCast == argNode.Op.OpType)
System\Data\Query\PlanCompiler\PlanCompilerUtil.cs (3)
56if (n.Child1.Op.OpType == OpType.Null) 61if (n.Child2.Op.OpType == OpType.Null) 152node => (node.Op.OpType != OpType.And),
System\Data\Query\PlanCompiler\Predicate.cs (7)
218if (part.Op.OpType != OpType.EQ) 276if (andTree.Op.OpType == OpType.And) 344if (simplePredicateNode.Op.OpType != OpType.EQ) 425switch (simplePredNode.Op.OpType) 446if (simplePredNode.Child0.Op.OpType != OpType.IsNull) 457if (constantOp == null || (constantOp.OpType == OpType.Null)) 480if (left.Op.OpType != OpType.VarRef)
System\Data\Query\PlanCompiler\PreProcessor.cs (17)
407if (viewNode.Op.OpType == OpType.Project) 480if (navigateOpNode.Child0.Op.OpType == OpType.GetEntityRef && 1228if (op.OpType == OpType.IsNull && TypeSemantics.IsRowType(n.Child0.Op.Type) || TypeSemantics.IsComplexType(n.Child0.Op.Type)) 1308if (n.Op.OpType != OpType.Property || (!Helper.IsNavigationProperty(((PropertyOp)n.Op).PropertyInfo))) 1314if (currentNode.Op.OpType == OpType.SoftCast) 1318return currentNode.Op.OpType == OpType.VarRef; 1602PlanCompiler.Assert(op.OpType == OpType.NewEntity || op.OpType == OpType.DiscriminatedNewEntity, 1603"BuildKeyExpression: Unexpected OpType:" + op.OpType); 1604int offset = (op.OpType == OpType.DiscriminatedNewEntity) ? 1 : 0; 2044if (node.Op.OpType != OpType.Constant && node.Op.OpType != OpType.Null) 2186if (op.OpType == OpType.InnerJoin || op.OpType == OpType.LeftOuterJoin) 2225if (ancestor.Op.OpType == OpType.PhysicalProject) 2342if (OpType.Sort == n.Child0.Op.OpType || OpType.ConstrainedSort == n.Child0.Op.OpType)
System\Data\Query\PlanCompiler\ProjectionPruner.cs (7)
420if (op.Keys.Count > 1 && n.Child0.Op.OpType == OpType.Project) 532List<Node> constantKeys = varDefListNode.Children.Where(d => d.Op.OpType == OpType.VarDef 533&& PlanCompilerUtil.IsConstantBaseOp(d.Child0.Op.OpType)).ToList(); 569if (result.Op.OpType == OpType.GroupByInto && n.Child3.Children.Count == 0) 595if (n.Op.OpType == OpType.CrossJoin) 677if (OpType.Intersect == op.OpType || OpType.Except == op.OpType)
System\Data\Query\PlanCompiler\PropertyPushdownHelper.cs (3)
662if (n.Op.OpType == OpType.CrossJoin) 742if (op.OpType == OpType.Intersect || op.OpType == OpType.Except)
System\Data\Query\PlanCompiler\SubqueryTrackingVisitor.cs (8)
207n.Op.OpType == OpType.Project || n.Op.OpType == OpType.Filter || 208n.Op.OpType == OpType.GroupBy || n.Op.OpType == OpType.GroupByInto, 209"VisitRelOpDefault: Unexpected op?" + n.Op.OpType); 240PlanCompiler.Assert(n.Op.OpType == OpType.InnerJoin || 241n.Op.OpType == OpType.LeftOuterJoin || 242n.Op.OpType == OpType.FullOuterJoin, "unexpected op?");
System\Data\Query\PlanCompiler\TransformationRules.cs (68)
89PlanCompiler.Assert(node.Op.IsScalarOp, "Expected a scalarOp: Found " + Dump.AutoString.ToString(node.Op.OpType)); 92if (node.Op.OpType == OpType.VarRef) 126if (node.Op.OpType == OpType.VarRef) 200if (this.m_relOpAncestors.Any(a => IsOpNotSafeForNullSentinelValueChange(a.Op.OpType))) 208a.Op.OpType == OpType.CrossApply || 209a.Op.OpType == OpType.OuterApply); 244if (IsOpNotSafeForNullSentinelValueChange(n.Op.OpType)) 559if (varRefMap != null && node.Op.OpType == OpType.VarRef) 930if (OpType.SoftCast == caseOpNode.Children[i].Op.OpType) 945if (OpType.SoftCast == caseOpNode.Children[i + 1].Op.OpType) 951if (caseOpNode.Children[i].Op.OpType != OpType.ConstantPredicate) 1039if (elseChild.Op.OpType != OpType.Case) 1076PlanCompiler.Assert(node.Op.OpType == OpType.EQ || node.Op.OpType == OpType.NE, "unexpected comparison op type?"); 1084bool result = (node.Op.OpType == OpType.EQ) ? (bool)comparisonStatus : !((bool)comparisonStatus); 1197switch (node.Op.OpType) 1210PlanCompiler.Assert(false, "Unexpected OpType - " + node.Op.OpType); 1466if (predicateNode.Op.OpType == OpType.ConstantPredicate) 1571if (setOp.OpType == OpType.Except && branchId == 1) 1590if (branchId == 0 && filterNode.Op.OpType != OpType.Except) 1821if (joinOp.OpType == OpType.LeftOuterJoin) 1840if (leftInputNode.Op.OpType != OpType.ScanTable) 1847if ((rightInputNode.Op.OpType != OpType.ScanTable) && 1848(joinOp.OpType != OpType.LeftOuterJoin)) 1860if (joinOp.OpType == OpType.CrossJoin || joinOp.OpType == OpType.InnerJoin) 1886if (joinOp.OpType == OpType.CrossJoin) 1892PlanCompiler.Assert(joinOp.OpType == OpType.InnerJoin, "unexpected non-InnerJoin?"); 1898newJoinPredicateNode = (joinOp.OpType == OpType.CrossJoin) ? null : joinNode.Child2; 1914if (joinOp.OpType == OpType.CrossJoin) 2021if (n.Child0.Op.OpType == OpType.SingleRowTable || 2022(n.Child0.Op.OpType == OpType.Project && 2023n.Child0.Child0.Op.OpType == OpType.SingleRowTable)) 2243if (definingExprNode.Op.OpType == OpType.VarRef) 2332if (varDefListNode.Children.Where(c => c.Child0.Op.OpType == OpType.NullSentinel).Count() == 0) 2348if (!canChangeNullSentinelValue || !TransformationRulesContext.TryGetInt32Var(n.Child1.Children.Where(child => child.Child0.Op.OpType == OpType.Constant || child.Child0.Op.OpType == OpType.InternalConstant).Select(child => ((VarDefOp)(child.Op)).Var), out inputSentinel)) 2350inputSentinel = n.Child1.Children.Where(child => child.Child0.Op.OpType == OpType.NullSentinel).Select(child => ((VarDefOp)(child.Op)).Var).FirstOrDefault(); 2364if (definingExprNode.Op.OpType == OpType.NullSentinel) 2459if (applyNode.Op.OpType == OpType.CrossApply) 2568if (varDefNode.Child0.Op.OpType == OpType.NullSentinel && sentinelIsInt32 && trc.CanChangeNullSentinelValue) 2720(varDefListNode.Child0.Child0.Op.OpType == OpType.InternalConstant || varDefListNode.Child0.Child0.Op.OpType == OpType.NullSentinel)) 2743PlanCompiler.Assert(varDefNode.Op.OpType == OpType.VarDef, "Expected VarDefOp. Found " + varDefNode.Op.OpType + " instead"); 2765varDefNode.Child0.Op.OpType == OpType.NullSentinel)) 2842if (applyOp.OpType == OpType.OuterApply && 2871if (applyOp.OpType == OpType.CrossApply) 2920OpType applyKind = applyNode.Op.OpType; 3415if ((joinNode.Op.OpType != OpType.LeftOuterJoin) && 3416(joinNode.Child0.Op.OpType == OpType.Project) && 3417(joinNode.Child1.Op.OpType == OpType.Project)) 3459if (joinNode.Child0.Op.OpType == OpType.Project) 3466PlanCompiler.Assert(joinNode.Op.OpType != OpType.LeftOuterJoin, "unexpected non-LeftOuterJoin"); 3560if (joinNode.Child0.Op.OpType == OpType.Filter) 3568if (joinNode.Child1.Op.OpType == OpType.Filter && joinNode.Op.OpType != OpType.LeftOuterJoin) 3593if (joinNode.Op.OpType == OpType.CrossJoin) 3647if (joinNode.Child0.Op.OpType == OpType.SingleRowTable) 3722if (singleRowNode.Child0.Op.OpType == OpType.Filter) 3825if (!rightChildIsEmptySet && setOp.OpType == OpType.UnionAll || 3826!leftChildIsEmptySet && setOp.OpType == OpType.Intersect) 3902if (definingExprNode.Op.OpType == OpType.VarRef) 4006if (varDefNode.Child0.Op.OpType == OpType.Constant || varDefNode.Child0.Op.OpType == OpType.InternalConstant || varDefNode.Child0.Op.OpType == OpType.NullSentinel) 4238if (n.Child0.Op.OpType != OpType.ScanTable) 4246|| n.Child2.Child0.Child0.Op.OpType != OpType.Aggregate)
System\Data\Query\PlanCompiler\VarRefManager.cs (1)
119switch (node.Op.OpType)