diff options
Diffstat (limited to 'src/mongo/db/pipeline/expression_context.h')
-rw-r--r-- | src/mongo/db/pipeline/expression_context.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/expression_context.h b/src/mongo/db/pipeline/expression_context.h index 232df5486a3..32289466640 100644 --- a/src/mongo/db/pipeline/expression_context.h +++ b/src/mongo/db/pipeline/expression_context.h @@ -431,6 +431,11 @@ public: // expression counting. bool enabledCounters = true; + // Returns true if the resolved collation of the context is simple. + bool isResolvedCollationSimple() const { + return getCollatorBSON().woCompare(CollationSpec::kSimpleSpec) == 0; + } + protected: static const int kInterruptCheckPeriod = 128; |