summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_planner_params.h
diff options
context:
space:
mode:
authorHaley Connelly <haley.connelly@mongodb.com>2021-10-18 18:57:44 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-18 20:04:30 +0000
commitd7eff66fcef9e0daaa057a66bd3de10a92c6af79 (patch)
tree69d94c12dd48d1bd9422f98a912cc169ed74e4c0 /src/mongo/db/query/query_planner_params.h
parentc0bb6b8677c895e525c30c738b91c83608dcf04d (diff)
downloadmongo-d7eff66fcef9e0daaa057a66bd3de10a92c6af79.tar.gz
SERVER-60726 Add clusteredInfo to QueryPlannerParams
Diffstat (limited to 'src/mongo/db/query/query_planner_params.h')
-rw-r--r--src/mongo/db/query/query_planner_params.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/query/query_planner_params.h b/src/mongo/db/query/query_planner_params.h
index be00b55fa38..f470df7dd10 100644
--- a/src/mongo/db/query/query_planner_params.h
+++ b/src/mongo/db/query/query_planner_params.h
@@ -31,6 +31,7 @@
#include <vector>
+#include "mongo/db/catalog/clustered_collection_options_gen.h"
#include "mongo/db/jsobj.h"
#include "mongo/db/query/index_entry.h"
#include "mongo/db/query/query_knobs_gen.h"
@@ -139,6 +140,10 @@ struct QueryPlannerParams {
// index+query combinations.
size_t maxIndexedSolutions;
+ // Specifies the clusteredIndex information necessary to utilize the cluster key in bounded
+ // collection scans and other query operations.
+ boost::optional<ClusteredCollectionInfo> clusteredInfo;
+
// Set if we allow optimization which converts "_id" predicates into range collection scan using
// minRecord and maxRecord.
bool allowRIDRange;