diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-03-09 17:40:46 -0500 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-03-14 15:55:03 -0400 |
commit | 0c25cd64ed475dbc88008af3c076cf2f235ce8d5 (patch) | |
tree | 863808f8043c2e90483881aaa41c7455d11989bc /src/mongo/db/query/planner_ixselect.h | |
parent | ab13ba2b6cbdcc7a03a2c03f8021977b29e91fc3 (diff) | |
download | mongo-0c25cd64ed475dbc88008af3c076cf2f235ce8d5.tar.gz |
SERVER-22785 Update QueryPlannerIXSelect's index selection code to be collation-aware
Diffstat (limited to 'src/mongo/db/query/planner_ixselect.h')
-rw-r--r-- | src/mongo/db/query/planner_ixselect.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mongo/db/query/planner_ixselect.h b/src/mongo/db/query/planner_ixselect.h index 2928b708677..914e9265d9b 100644 --- a/src/mongo/db/query/planner_ixselect.h +++ b/src/mongo/db/query/planner_ixselect.h @@ -35,6 +35,8 @@ namespace mongo { +class CollatorInterface; + /** * Methods for determining what fields and predicates can use indices. */ @@ -67,7 +69,10 @@ public: * {field: "2d"} can only be used with some geo predicates. * {field: "2dsphere"} can only be used with some other geo predicates. */ - static bool compatible(const BSONElement& elt, const IndexEntry& index, MatchExpression* node); + static bool compatible(const BSONElement& elt, + const IndexEntry& index, + MatchExpression* node, + const CollatorInterface* collator); /** * Determine how useful all of our relevant 'indices' are to all predicates in the subtree @@ -86,7 +91,8 @@ public: */ static void rateIndices(MatchExpression* node, std::string prefix, - const std::vector<IndexEntry>& indices); + const std::vector<IndexEntry>& indices, + const CollatorInterface* collator); /** * Amend the RelevantTag lists for all predicates in the subtree rooted at 'node' to remove |