3 instantiations of SortKey
System.Data.Entity (3)
System\Data\Query\InternalTrees\Command.cs (3)
1250
return new
SortKey
(v, asc, collation);
1260
return new
SortKey
(v, asc, "");
1270
return new
SortKey
(v, true, "");
108 references to SortKey
System.Data.Entity (108)
System\Data\Query\InternalTrees\Command.cs (10)
1248
internal static
SortKey
CreateSortKey(Var v, bool asc, string collation)
1258
internal static
SortKey
CreateSortKey(Var v, bool asc)
1268
internal static
SortKey
CreateSortKey(Var v)
1280
internal SortOp CreateSortOp(List<
SortKey
> sortKeys)
1290
internal ConstrainedSortOp CreateConstrainedSortOp(List<
SortKey
> sortKeys)
1301
internal ConstrainedSortOp CreateConstrainedSortOp(List<
SortKey
> sortKeys, bool withTies)
1472
internal static CollectionInfo CreateCollectionInfo(Var collectionVar, ColumnMap columnMap, VarList flattenedElementVars, VarVec keys, List<InternalTrees.
SortKey
> sortKeys, object discriminatorValue)
1488
List<
SortKey
> prefixSortKeys, List<
SortKey
> postfixSortKeys,
1502
internal MultiStreamNestOp CreateMultiStreamNestOp(List<
SortKey
> prefixSortKeys, VarVec outputVars,
System\Data\Query\InternalTrees\Dump.cs (3)
357
private static string FormatVarList(StringBuilder sb, List<
SortKey
> varList) {
361
foreach (
SortKey
v in varList) {
503
foreach (InternalTrees.
SortKey
sortKey in op.Keys) {
System\Data\Query\InternalTrees\OpCopier.cs (14)
62
internal static List<
SortKey
> Copy(Command cmd, List<
SortKey
> sortKeys)
206
private
SortKey
Copy(
SortKey
sortKey)
220
private List<
SortKey
> Copy(List<
SortKey
> sortKeys)
222
List<
SortKey
> newSortKeys = new List<
SortKey
>();
223
foreach (
SortKey
k in sortKeys)
773
List<
SortKey
> newSortKeys = Copy(op.Keys);
794
List<
SortKey
> newSortKeys = Copy(op.Keys);
1120
List<
SortKey
> newSortKeys = Copy(ci.SortKeys);
1128
List<
SortKey
> newPrefixSortKeys = Copy(op.PrefixSortKeys);
1133
List<
SortKey
> newPostfixSortKeys = Copy(ssnOp.PostfixSortKeys);
System\Data\Query\InternalTrees\PhysicalOps.cs (11)
135
internal List<InternalTrees.
SortKey
> SortKeys
152
internal CollectionInfo(Var collectionVar, ColumnMap columnMap, VarList flattenedElementVars, VarVec keys, List<InternalTrees.
SortKey
> sortKeys, object discriminatorValue)
168
private List<InternalTrees.
SortKey
> m_sortKeys; //list of sort keys specific to this collection
183
internal List<
SortKey
> PrefixSortKeys
208
internal NestBaseOp(OpType opType, List<
SortKey
> prefixSortKeys,
220
private List<
SortKey
> m_prefixSortKeys; // list of sort key prefixes
248
internal List<
SortKey
> PostfixSortKeys
287
List<
SortKey
> prefixSortKeys, List<
SortKey
> postfixSortKeys,
301
List<
SortKey
> m_postfixSortKeys; // list of postfix sort keys
331
internal MultiStreamNestOp(List<
SortKey
> prefixSortKeys, VarVec outputVars,
System\Data\Query\InternalTrees\RelOps.cs (5)
570
private List<
SortKey
> m_keys;
581
internal SortBaseOp(OpType opType, List<
SortKey
> sortKeys)
592
internal List<
SortKey
> Keys { get { return m_keys; } }
603
internal SortOp(List<
SortKey
> sortKeys) : base(OpType.Sort, sortKeys) {}
646
internal ConstrainedSortOp(List<
SortKey
> sortKeys, bool withTies)
System\Data\Query\PlanCompiler\CTreeGenerator.cs (2)
1516
private List<DbSortClause> VisitSortKeys(IList<InternalTrees.
SortKey
> sortKeys)
1520
foreach (InternalTrees.
SortKey
sortKey in sortKeys)
System\Data\Query\PlanCompiler\ITreeGenerator.cs (7)
1405
_iqtCommand.CreateConstrainedSortOp(new List<
SortKey
>(), withTies),
2798
private Node VisitSortArguments(DbExpressionBinding input, IList<DbSortClause> sortOrder, List<
SortKey
> sortKeys, out Var inputVar)
2857
SortKey
sortKey = null;
2896
List<
SortKey
> sortKeys = new List<
SortKey
>();
2932
List<
SortKey
> sortKeys = new List<
SortKey
>();
System\Data\Query\PlanCompiler\NestPullup.cs (37)
210
private static void RemapSortKeys(List<InternalTrees.
SortKey
> sortKeys, Dictionary<Var, Var> varMap)
214
foreach (InternalTrees.
SortKey
sortKey in sortKeys)
552
NestBaseOp newNestOp = Command.CreateMultiStreamNestOp(new List<InternalTrees.
SortKey
>(), newOutputVars, newCollectionInfoList);
817
foreach (System.Data.Query.InternalTrees.
SortKey
key in ((SortOp)sortNode.Op).Keys)
945
List<InternalTrees.
SortKey
> sortKeys = ConsolidateSortKeys(nestOp.PrefixSortKeys, nestedNestOp.PrefixSortKeys);
948
foreach (InternalTrees.
SortKey
sk in sortKeys)
1159
MultiStreamNestOp nestOp = Command.CreateMultiStreamNestOp(new List<InternalTrees.
SortKey
>(), outputVars, collectionInfoList);
1244
List<InternalTrees.
SortKey
> sortKeys = null;
1252
foreach (InternalTrees.
SortKey
sk in sortKeys)
1263
sortKeys = new List<InternalTrees.
SortKey
>();
1473
foreach (InternalTrees.
SortKey
sk in nestOp.PrefixSortKeys)
1612
private NestBaseOp GetNestOpWithConsolidatedSortKeys(NestBaseOp inputNestOp, List<InternalTrees.
SortKey
> sortKeys)
1623
foreach (InternalTrees.
SortKey
sk in sortKeys)
1637
List<InternalTrees.
SortKey
> sortKeyList = ConsolidateSortKeys(sortKeys, inputNestOp.PrefixSortKeys);
1654
private List<InternalTrees.
SortKey
> ConsolidateSortKeys(List<InternalTrees.
SortKey
> sortKeyList1, List<InternalTrees.
SortKey
> sortKeyList2)
1657
List<InternalTrees.
SortKey
> sortKeyList = new List<InternalTrees.
SortKey
>();
1659
foreach (InternalTrees.
SortKey
sk in sortKeyList1)
1671
foreach (InternalTrees.
SortKey
sk in sortKeyList2)
1998
List<InternalTrees.
SortKey
> sortKeyList = BuildSortKeyList(ssnOp);
2029
private List<InternalTrees.
SortKey
> BuildSortKeyList(SingleStreamNestOp ssnOp)
2034
List<InternalTrees.
SortKey
> sortKeyList = new List<InternalTrees.
SortKey
>();
2035
foreach (InternalTrees.
SortKey
sk in ssnOp.PrefixSortKeys)
2050
InternalTrees.
SortKey
sk = Command.CreateSortKey(v);
2060
foreach (InternalTrees.
SortKey
sk in ssnOp.PostfixSortKeys)
2188
List<List<InternalTrees.
SortKey
>> postfixSortKeyList;
2230
List<InternalTrees.
SortKey
> newPostfixSortKeys = new List<InternalTrees.
SortKey
>();
2265
List<InternalTrees.
SortKey
> postfixSortKeys = postfixSortKeyList[i];
2353
private void NormalizeNestOpInputs(NestBaseOp nestOp, Node nestNode, out VarList discriminatorVarList, out List<List<InternalTrees.
SortKey
>> sortKeys)
2361
sortKeys = new List<List<InternalTrees.
SortKey
>>();
2380
List<InternalTrees.
SortKey
> mySortKeys = BuildSortKeyList(ssnOp);
2399
sortKeys.Add(new List<InternalTrees.
SortKey
>());
2406
foreach (InternalTrees.
SortKey
sortKey in sortKeys[i])
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (9)
662
private List<InternalTrees.
SortKey
> HandleSortKeys(List<InternalTrees.
SortKey
> keys)
664
List<InternalTrees.
SortKey
> newSortKeys = new List<InternalTrees.
SortKey
>();
666
foreach (InternalTrees.
SortKey
k in keys)
683
InternalTrees.
SortKey
newKey = Command.CreateSortKey(v, k.AscendingSort, k.Collation);
690
List<InternalTrees.
SortKey
> result = modified ? newSortKeys : keys;
1294
List<InternalTrees.
SortKey
> newSortKeys = HandleSortKeys(op.Keys);
2241
List<InternalTrees.
SortKey
> newSortKeys = HandleSortKeys(op.Keys);
System\Data\Query\PlanCompiler\PreProcessor.cs (1)
2364
foreach (
SortKey
key in sort.Keys)
System\Data\Query\PlanCompiler\ProjectionPruner.cs (1)
711
foreach (InternalTrees.
SortKey
sk in op.Keys)
System\Data\Query\PlanCompiler\PropertyPushdownHelper.cs (1)
770
foreach (InternalTrees.
SortKey
sk in op.Keys)
System\Data\Query\PlanCompiler\VarRefManager.cs (2)
189
private static bool HasVarReferences(List<InternalTrees.
SortKey
> listToCheck, VarVec vars)
191
foreach (InternalTrees.
SortKey
key in listToCheck)
System\Data\Query\PlanCompiler\VarRemapper.cs (5)
189
private void Map(List<InternalTrees.
SortKey
> sortKeys)
198
foreach (InternalTrees.
SortKey
sk in sortKeys)
213
List<InternalTrees.
SortKey
> newSortKeys = new List<
SortKey
>(sortKeys);
216
foreach (InternalTrees.
SortKey
sk in newSortKeys)