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