summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/index_bounds_builder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/index_bounds_builder.h')
-rw-r--r--src/mongo/db/query/index_bounds_builder.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/query/index_bounds_builder.h b/src/mongo/db/query/index_bounds_builder.h
index 7f141600837..67205d64e7a 100644
--- a/src/mongo/db/query/index_bounds_builder.h
+++ b/src/mongo/db/query/index_bounds_builder.h
@@ -44,6 +44,9 @@ class CollatorInterface;
*/
class IndexBoundsBuilder {
public:
+ static const Interval kUndefinedPointInterval;
+ static const Interval kNullPointInterval;
+
/**
* Describes various degrees of precision with which predicates can be evaluated based
* on the index bounds.
@@ -209,6 +212,12 @@ public:
bool* endKeyInclusive);
/**
+ * Returns 'true' if the ordered intervals 'oil' represent a strict null equality predicate.
+ * Returns 'false' otherwise.
+ */
+ static bool isNullInterval(const OrderedIntervalList& oil);
+
+ /**
* Appends the startKey and endKey of the given "all values" 'interval' (which is either
* [MinKey, MaxKey] or [MaxKey, MinKey] interval) to the 'startBob' and 'endBob' respectively,
* handling inclusivity of each bound through the relevant '*KeyInclusive' parameter.