summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/expression.h
diff options
context:
space:
mode:
authorArun Banala <arun.banala@mongodb.com>2019-02-27 15:13:01 +0000
committerArun Banala <arun.banala@mongodb.com>2019-03-13 12:33:22 +0000
commit6907444c110ed37aad81faa3a026267d2fd38b95 (patch)
tree3a7612bd566fbae23845e33022f184258a1b14af /src/mongo/db/pipeline/expression.h
parent1e619f3eaf5615d582f6fd88c254e9fcb9c73b2d (diff)
downloadmongo-6907444c110ed37aad81faa3a026267d2fd38b95.tar.gz
SERVER-39695 Implement $regexFind
Diffstat (limited to 'src/mongo/db/pipeline/expression.h')
-rw-r--r--src/mongo/db/pipeline/expression.h9
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;
+};
}