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