System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (119)
193foreach (var paramVar in m_command.Vars.OfType<ParameterVar>().Where(v => md.TypeSemantics.IsEnumerationType(v.Type) || md.TypeSemantics.IsStrongSpatialType(v.Type)).ToArray())
196? m_command.ReplaceEnumParameterVar(paramVar)
197: m_command.ReplaceStrongSpatialParameterVar(paramVar);
201Node rootNode = m_command.Root;
216get { return m_command.StringType; }
316PropertyOp newPropertyOp = m_command.CreatePropertyOp(property);
317return m_command.CreateNode(newPropertyOp, this.Copy(input));
379Node newNode = m_command.CreateNode(m_command.CreateSoftCastOp(targetType), node);
392return OpCopier.Copy(m_command, n);
402return m_command.CreateNode(m_command.CreateNullOp(type));
411NullSentinelOp op = m_command.CreateNullSentinelOp();
412return m_command.CreateNode(op);
432InternalConstantOp op = m_command.CreateInternalConstantOp(typeIdType, value);
433return m_command.CreateNode(op);
446InternalConstantOp op = m_command.CreateInternalConstantOp(DefaultTypeIdType, value);
447return m_command.CreateNode(op);
725convertToFlattenedTypeVarDefs.Add(m_command.CreateVarDefNode(m_command.CreateNode(m_command.CreateVarRefOp(unnestOpTableColumns[columnIndex])), out var));
733convertToFlattenedTypeVarDefs.Add(m_command.CreateVarDefNode(CreateNullSentinelConstant(), out var));
745return m_command.CreateNode(m_command.CreateProjectOp(m_command.CreateVarVec(convertToFlattenedTypeVars)),
747m_command.CreateNode(m_command.CreateVarDefListOp(), convertToFlattenedTypeVarDefs));
805Node newVarDefListNode = m_command.CreateNode(n.Op, newChildren);
828Node newVarDefNode = m_command.CreateVarDefNode(definingExprNode, out newVar);
876Node newVarDefNode = m_command.CreateVarDefNode(propAccessor, out newVar);
924Node newVarDefNode = m_command.CreateVarDefNode(node, out newVar);
949PhysicalProjectOp newOp = m_command.CreatePhysicalProjectOp(newVarList, newColumnMap);
1026VarVec newVarSet = m_command.CreateVarVec(FlattenVars(varSet));
1054n.Op = m_command.CreateDistinctOp(newKeys);
1080n.Op = m_command.CreateGroupByOp(newKeys, newOutputs);
1109n.Op = m_command.CreateGroupByIntoOp(newKeys, newInputs, newOutputs);
1139n.Op = m_command.CreateProjectOp(newVars);
1183TableMD newTableMD = m_command.CreateFlatTableDefinition(properties, keyProperties, op.Table.TableMetadata.Extent);
1184Table newTable = m_command.CreateTableInstance(newTableMD);
1188n.Op = m_command.CreateScanTableOp(newTable);
1298n.Op = m_command.CreateSortOp(newSortKeys);
1384UnnestOp unnestOp = m_command.CreateUnnestOp(newUnnestVar);
1391n.Op = m_command.CreateUnnestOp(newUnnestVar, op.Table);
1428newTableMetadata = m_command.CreateFlatTableDefinition(tvfReturnType.Properties, GetTvfResultKeys(processingTVF), null);
1432newTableMetadata = m_command.CreateFlatTableDefinition(typeInfo.FlattenedType);
1434Table newTable = m_command.CreateTableInstance(newTableMetadata);
1437n.Op = m_command.CreateUnnestOp(newUnnestVar, newTable);
1526VarVec newVarSet = m_command.CreateVarVec();
1535VarDefOp varDefOp = m_command.CreateVarDefOp(v);
1536Node varDefOpNode = m_command.CreateNode(varDefOp, CreateNullConstantNode(v.Type));
1539Node varDefListNode = m_command.CreateNode(m_command.CreateVarDefListOp(), varDefOpNodes);
1540ProjectOp projectOp = m_command.CreateProjectOp(newVarSet);
1541Node projectNode = m_command.CreateNode(projectOp, setOpChild, varDefListNode);
1614innerVar = m_command.CreateComputedVar(outerVar.Type);
1640Var newVar = m_command.CreateSetOpVar(newType);
1646Var newVar = m_command.CreateSetOpVar(newType);
1665SetOpVar newVar = m_command.CreateSetOpVar(md.Helper.GetModelTypeUsage(newProperty));
1738NewRecordOp newOp = m_command.CreateNewRecordOp(newType);
1786Node newNode = m_command.CreateNode(newOp, newArgs);
1862return m_command.CreateNode(m_command.CreateCastOp(md.TypeUsage.Create(underlyingType, op.Type.Facets)), n.Child0);
1889return m_command.CreateNode(
1890m_command.CreateConstantOp(
1952n.Op = m_command.CreateCaseOp(newType);
2004md.TypeUsage integerType = this.m_command.IntegerType;
2007CaseOp newCaseOp = m_command.CreateCaseOp(integerType);
2013Node nullSentinelNullNode = m_command.CreateNode(m_command.CreateNullOp(integerType));
2020resultNode.Child0 = m_command.CreateNode(newCaseOp, children);
2079Node caseNode = m_command.CreateNode(m_command.CreateCaseOp(md.Helper.GetModelTypeUsage(property)), caseChildren);
2085NewRecordOp newRec = m_command.CreateNewRecordOp(typeInfo.FlattenedTypeUsage, fieldTypes);
2086return m_command.CreateNode(newRec, fieldValues);
2101n.Op = m_command.CreateCollectOp(GetNewType(op.Type));
2156ComparisonOp newCompOp = m_command.CreateComparisonOp(op.OpType);
2157Node newCompNode = m_command.CreateNode(newCompOp, values1[i], values2[i]);
2161andNode = m_command.CreateNode(m_command.CreateConditionalOp(OpType.And), andNode, newCompNode);
2221Node isNullNode = m_command.CreateNode(m_command.CreateConditionalOp(OpType.IsNull), propertyValue);
2225andNode = m_command.CreateNode(m_command.CreateConditionalOp(OpType.And), andNode, isNullNode);
2245n.Op = m_command.CreateConstrainedSortOp(newSortKeys, op.WithTies);
2318NewRecordOp rec = m_command.CreateNewRecordOp(outputTypeInfo.FlattenedTypeUsage, outputFieldTypes);
2319Node newNode = m_command.CreateNode(rec, inputFieldValues);
2379Op newRecordOp = m_command.CreateNewRecordOp(outputTypeInfo.FlattenedTypeUsage, fieldTypes);
2380newNode = m_command.CreateNode(newRecordOp, fieldValues);
2466inputFieldValues.Insert(0, m_command.CreateNode(m_command.CreateInternalConstantOp(md.Helper.GetModelTypeUsage(outputTypeInfo.EntitySetIdProperty), entitySetId)));
2479NewRecordOp recOp = m_command.CreateNewRecordOp(outputTypeInfo.FlattenedTypeUsage, outputFields);
2480Node newNode = m_command.CreateNode(recOp, inputFieldValues);
2520n.Op = m_command.CreateVarRefOp(((CollectionVarInfo)varInfo).NewVar);
2525n.Op = m_command.CreateVarRefOp(((PrimitiveTypeVarInfo)varInfo).NewVar);
2536NewRecordOp newOp = m_command.CreateNewRecordOp(structuredVarInfo.NewTypeUsage, structuredVarInfo.Fields);
2540VarRefOp newVarRefOp = m_command.CreateVarRefOp(v);
2541newNodeChildren.Add(m_command.CreateNode(newVarRefOp));
2543Node newNode = m_command.CreateNode(newOp, newNodeChildren);
2600CaseOp normalizer = m_command.CreateCaseOp(typeInfo.RootType.TypeIdProperty.TypeUsage);
2618ConstantBaseOp discriminatorValueOp = m_command.CreateConstantOp(md.Helper.GetModelTypeUsage(op.DiscriminatorMap.DiscriminatorProperty.TypeUsage),
2620Node discriminatorConstant = m_command.CreateNode(discriminatorValueOp);
2621ComparisonOp discriminatorPredicateOp = m_command.CreateComparisonOp(OpType.EQ);
2622Node discriminatorPredicate = m_command.CreateNode(discriminatorPredicateOp, discriminator, discriminatorConstant);
2629discriminator = m_command.CreateNode(normalizer, children);
2657InternalConstantOp entitySetIdOp = m_command.CreateInternalConstantOp(md.Helper.GetModelTypeUsage(entitySetIdProperty), entitySetId);
2658entitySetIdNode = m_command.CreateNode(entitySetIdOp);
2846NewRecordOp newOp = m_command.CreateNewRecordOp(typeInfo.FlattenedTypeUsage, newFields);
2847Node newNode = m_command.CreateNode(newOp, newFieldValues);
2893return m_command.CreateNode(newRecordOp, newFieldValues);
2963CaseOp caseOp = m_command.CreateCaseOp(typeInfo.FlattenedTypeUsage);
2964Node caseNode = m_command.CreateNode(caseOp, likeNode, n.Child0, CreateNullConstantNode(caseOp.Type));
3007LikeOp likeOp = m_command.CreateLikeOp();
3008newNode = m_command.CreateNode(likeOp, typeIdProperty, typeIdConstantNode, CreateNullConstantNode(DefaultTypeIdType));
3041current = m_command.CreateNode(m_command.CreateConditionalOp(OpType.Or), current, typeComparisonNode);
3047current = m_command.CreateNode(m_command.CreateFalseOp());
3061ComparisonOp eqCompOp = m_command.CreateComparisonOp(OpType.EQ);
3062Node result = m_command.CreateNode(eqCompOp, typeIdProperty, typeIdConstantNode);