diff options
-rw-r--r-- | src/mongo/db/matcher/expression_expr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/matcher/expression_expr.h b/src/mongo/db/matcher/expression_expr.h index 72c947c2c5b..1865025ea30 100644 --- a/src/mongo/db/matcher/expression_expr.h +++ b/src/mongo/db/matcher/expression_expr.h @@ -83,6 +83,14 @@ public: return nullptr; } + boost::intrusive_ptr<ExpressionContext> getExpressionContext() { + return _expCtx; + } + + boost::intrusive_ptr<Expression> getExpression() { + return _expression; + } + private: ExpressionOptimizerFunc getOptimizer() const final; |