summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/extensions_callback_noop.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/matcher/extensions_callback_noop.h')
-rw-r--r--src/mongo/db/matcher/extensions_callback_noop.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/mongo/db/matcher/extensions_callback_noop.h b/src/mongo/db/matcher/extensions_callback_noop.h
index cecacb45c0d..29ae9f2be4e 100644
--- a/src/mongo/db/matcher/extensions_callback_noop.h
+++ b/src/mongo/db/matcher/extensions_callback_noop.h
@@ -40,16 +40,12 @@ namespace mongo {
*/
class ExtensionsCallbackNoop : public ExtensionsCallback {
public:
- /**
- * Returns a TextNoOpMatchExpression, or an error Status if parsing fails.
- */
- StatusWithMatchExpression parseText(BSONElement text) const final;
+ std::unique_ptr<MatchExpression> createText(
+ TextMatchExpressionBase::TextParams text) const final;
- /**
- * Returns a WhereNoOpMatchExpression, or an error Status if parsing fails.
- */
- StatusWithMatchExpression parseWhere(const boost::intrusive_ptr<ExpressionContext>& expCtx,
- BSONElement where) const final;
+ std::unique_ptr<MatchExpression> createWhere(
+ const boost::intrusive_ptr<ExpressionContext>& expCtx,
+ WhereMatchExpressionBase::WhereParams where) const final;
bool hasNoopExtensions() const final {
return true;