From f24b3bb577003137f7fd40f0699e144df998bd58 Mon Sep 17 00:00:00 2001 From: Hari Khalsa Date: Tue, 3 Dec 2013 14:56:44 -0500 Subject: SERVER-10026 support max/min in new sys --- src/mongo/db/query/planner_access.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mongo/db/query/planner_access.h') diff --git a/src/mongo/db/query/planner_access.h b/src/mongo/db/query/planner_access.h index 57715fa2637..e5675b81698 100644 --- a/src/mongo/db/query/planner_access.h +++ b/src/mongo/db/query/planner_access.h @@ -55,6 +55,15 @@ namespace mongo { const QueryPlannerParams& params, int direction = 1); + /** + * Return a plan that scans the provided index from [startKey to endKey). + */ + static QuerySolutionNode* makeIndexScan(const IndexEntry& index, + const CanonicalQuery& query, + const QueryPlannerParams& params, + const BSONObj& startKey, + const BSONObj& endKey); + // // Indexed Data Access methods. // -- cgit v1.2.1