summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/index_bounds.h
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2013-09-18 11:57:21 -0400
committerHari Khalsa <hkhalsa@10gen.com>2013-09-18 16:42:20 -0400
commit311ebc33f399b555309ee6eba04af8c605108529 (patch)
treebe50e3cfea0c124759ded943a5d1c7cc5a79910b /src/mongo/db/query/index_bounds.h
parentde25d5b966fae434669df47b41c076445d2303f6 (diff)
downloadmongo-311ebc33f399b555309ee6eba04af8c605108529.tar.gz
SERVER-10026 enumeration as strategies, bug fixes galore, build plans
Diffstat (limited to 'src/mongo/db/query/index_bounds.h')
-rw-r--r--src/mongo/db/query/index_bounds.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mongo/db/query/index_bounds.h b/src/mongo/db/query/index_bounds.h
index a7a126c31e8..c1c164b4173 100644
--- a/src/mongo/db/query/index_bounds.h
+++ b/src/mongo/db/query/index_bounds.h
@@ -54,9 +54,29 @@ namespace mongo {
* interpret. Previously known as FieldRangeVector.
*/
struct IndexBounds {
+ IndexBounds() : isSimpleRange(false) { }
+
// For each indexed field, the values that the field is allowed to take on.
vector<OrderedIntervalList> fields;
+ /**
+ * The provided oil is AND-related to the bounds. If we have an existing oil over the
+ * field, intersect. Otherwise, add it to the right location in 'fields'.
+ */
+ void joinAnd(const OrderedIntervalList& oil, const BSONObj& keyPattern) {
+ // XXX XXX
+ verify(0);
+ }
+
+ /**
+ * The provided oil is OR-related to the bounds. If we have an existing oil over the
+ * field, find the union. Otherwise, add it to the right location in 'fields'.
+ */
+ void joinOr(const OrderedIntervalList& oil, const BSONObj& keyPattern) {
+ // XXX XXX
+ verify(0);
+ }
+
// Debugging check.
// We must have as many fields the key pattern does.
// The fields must be oriented in the direction we'd encounter them given the indexing