From 6907444c110ed37aad81faa3a026267d2fd38b95 Mon Sep 17 00:00:00 2001 From: Arun Banala Date: Wed, 27 Feb 2019 15:13:01 +0000 Subject: SERVER-39695 Implement $regexFind --- src/mongo/db/pipeline/expression.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mongo/db/pipeline/expression.h') diff --git a/src/mongo/db/pipeline/expression.h b/src/mongo/db/pipeline/expression.h index 5b79fafe1ad..4aa91a67086 100644 --- a/src/mongo/db/pipeline/expression.h +++ b/src/mongo/db/pipeline/expression.h @@ -2092,4 +2092,13 @@ private: boost::intrusive_ptr _onError; boost::intrusive_ptr _onNull; }; + +class ExpressionRegexFind final : public ExpressionFixedArity { +public: + explicit ExpressionRegexFind(const boost::intrusive_ptr& expCtx) + : ExpressionFixedArity(expCtx) {} + + Value evaluate(const Document& root) const final; + const char* getOpName() const final; +}; } -- cgit v1.2.1