summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/index_bounds.h
diff options
context:
space:
mode:
authorIan Boros <ian.boros@mongodb.com>2020-01-28 19:11:56 +0000
committerevergreen <evergreen@mongodb.com>2020-01-28 19:11:56 +0000
commitccc13ef0b7ce0f908479522660a54dcbd142f7a1 (patch)
treec8466e928795086932bac2825d84d6f98106844b /src/mongo/db/query/index_bounds.h
parent60282a8880a63920d376f358e0352051136383dc (diff)
downloadmongo-ccc13ef0b7ce0f908479522660a54dcbd142f7a1.tar.gz
SERVER-31898 Allow multikey indexes to provide sorts in certain cases
Diffstat (limited to 'src/mongo/db/query/index_bounds.h')
-rw-r--r--src/mongo/db/query/index_bounds.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/query/index_bounds.h b/src/mongo/db/query/index_bounds.h
index 513e22335f1..c1964415edd 100644
--- a/src/mongo/db/query/index_bounds.h
+++ b/src/mongo/db/query/index_bounds.h
@@ -84,6 +84,11 @@ struct OrderedIntervalList {
OrderedIntervalList reverseClone() const;
Interval::Direction computeDirection() const;
+
+ /**
+ * Returns true if this OIL represents a single [MinKey, MaxKey] bound.
+ */
+ bool isMinToMax() const;
};
/**