summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/planner_access.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2013-11-25 17:31:58 -0500
committerMatt Kangas <matt.kangas@mongodb.com>2013-12-02 12:25:46 -0500
commitbcfc8f0ae35fe08c5336c21cfd9752c06b089956 (patch)
tree3fdf3097bfc93e6cc9c1f638abadd135ed92caa1 /src/mongo/db/query/planner_access.h
parentcde3f4bd1aab5c29c880da9e606864f31377889b (diff)
downloadmongo-bcfc8f0ae35fe08c5336c21cfd9752c06b089956.tar.gz
SERVER-11852 fix query planning for inexact regexes
Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Diffstat (limited to 'src/mongo/db/query/planner_access.h')
-rw-r--r--src/mongo/db/query/planner_access.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/query/planner_access.h b/src/mongo/db/query/planner_access.h
index caeb75494fa..d4d490f5154 100644
--- a/src/mongo/db/query/planner_access.h
+++ b/src/mongo/db/query/planner_access.h
@@ -155,6 +155,17 @@ namespace mongo {
* Aligns OILs (and bounds) according to the kp direction * the scanDir.
*/
static void alignBounds(IndexBounds* bounds, const BSONObj& kp, int scanDir = 1);
+
+ private:
+ /**
+ * Add the filter 'match' to the query solution node 'node'. Takes
+ * ownership of 'match'.
+ *
+ * The MatchType, 'type', indicates whether 'match' is a child of an
+ * AND or an OR match expression.
+ */
+ static void _addFilterToSolutionNode(QuerySolutionNode* node, MatchExpression* match,
+ MatchExpression::MatchType type);
};
} // namespace mongo