diff options
author | Arun Banala <arun.banala@mongodb.com> | 2019-02-27 15:13:01 +0000 |
---|---|---|
committer | Arun Banala <arun.banala@mongodb.com> | 2019-03-13 12:33:22 +0000 |
commit | 6907444c110ed37aad81faa3a026267d2fd38b95 (patch) | |
tree | 3a7612bd566fbae23845e33022f184258a1b14af /src/mongo/db/pipeline/expression.h | |
parent | 1e619f3eaf5615d582f6fd88c254e9fcb9c73b2d (diff) | |
download | mongo-6907444c110ed37aad81faa3a026267d2fd38b95.tar.gz |
SERVER-39695 Implement $regexFind
Diffstat (limited to 'src/mongo/db/pipeline/expression.h')
-rw-r--r-- | src/mongo/db/pipeline/expression.h | 9 |
1 files changed, 9 insertions, 0 deletions
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<Expression> _onError; boost::intrusive_ptr<Expression> _onNull; }; + +class ExpressionRegexFind final : public ExpressionFixedArity<ExpressionRegexFind, 1> { +public: + explicit ExpressionRegexFind(const boost::intrusive_ptr<ExpressionContext>& expCtx) + : ExpressionFixedArity<ExpressionRegexFind, 1>(expCtx) {} + + Value evaluate(const Document& root) const final; + const char* getOpName() const final; +}; } |