diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-03-15 13:24:07 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-03-15 13:37:43 -0400 |
commit | 652e3577be3d157cec039d0b017cf7e2d6e2c7c6 (patch) | |
tree | 2478eba66f4f32fb7f51882506bb5535a5e3f3ab /src/mongo/db/query/planner_ixselect.h | |
parent | 61fd8eefb0fd8e563014b82b2d928d9b0bafda7b (diff) | |
download | mongo-652e3577be3d157cec039d0b017cf7e2d6e2c7c6.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 |