summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_solution.h
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2013-10-05 13:04:39 -0400
committerHari Khalsa <hkhalsa@10gen.com>2013-10-07 15:07:16 -0400
commita5c4104bb28f2870602a8c7a5e4a4b506dbc99a1 (patch)
tree3617caf0663936d4b109f3ff6ba590f307078f41 /src/mongo/db/query/query_solution.h
parentb7660950c4888052f2c68a02f6667c114a72dfbd (diff)
downloadmongo-a5c4104bb28f2870602a8c7a5e4a4b506dbc99a1.tar.gz
SERVER-10471 merge index bounds, enumerate based on indices, bug fixes
Diffstat (limited to 'src/mongo/db/query/query_solution.h')
-rw-r--r--src/mongo/db/query/query_solution.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mongo/db/query/query_solution.h b/src/mongo/db/query/query_solution.h
index 948ac02e658..c8a0e933247 100644
--- a/src/mongo/db/query/query_solution.h
+++ b/src/mongo/db/query/query_solution.h
@@ -49,6 +49,12 @@ namespace mongo {
*/
virtual StageType getType() const = 0;
+ string toString() const {
+ stringstream ss;
+ appendToString(&ss, 0);
+ return ss.str();
+ }
+
/**
* Internal function called by toString()
*
@@ -75,9 +81,6 @@ namespace mongo {
* Usage: If an index-only plan has all the fields we're interested in, we don't
* have to fetch to show results with those fields.
*
- * XXX TODO: Cover issues resulting from covered and multikey. Multikey prohibits
- * covering, but allows sort (double check!)
- *
* TODO: 'field' is probably more appropriate as a FieldRef or string.
*/
virtual bool hasField(const string& field) const = 0;
@@ -297,6 +300,8 @@ namespace mongo {
BSONObj indexKeyPattern;
+ bool indexIsMultiKey;
+
scoped_ptr<MatchExpression> filter;
// Only set for 2d.