summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_array.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2017-12-14 14:49:07 -0500
committerDavid Storch <david.storch@10gen.com>2017-12-18 18:38:16 -0500
commit01c39d416435f930d249701ccb71744b519873b5 (patch)
treea288e6c965cfbb9c77a1f92afa41480a71c8b0d9 /src/mongo/db/matcher/expression_array.h
parent85e1ed33ef2fc83e870124441eee7e036b8118a4 (diff)
downloadmongo-01c39d416435f930d249701ccb71744b519873b5.tar.gz
SERVER-31760 Add InternalExprEqMatchExpression.
Diffstat (limited to 'src/mongo/db/matcher/expression_array.h')
-rw-r--r--src/mongo/db/matcher/expression_array.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/mongo/db/matcher/expression_array.h b/src/mongo/db/matcher/expression_array.h
index 4cf54f43677..454f6a4a335 100644
--- a/src/mongo/db/matcher/expression_array.h
+++ b/src/mongo/db/matcher/expression_array.h
@@ -46,9 +46,10 @@ namespace mongo {
class ArrayMatchingMatchExpression : public PathMatchExpression {
public:
ArrayMatchingMatchExpression(MatchType matchType, StringData path)
- : PathMatchExpression(matchType, path) {
- setTraverseLeafArray();
- }
+ : PathMatchExpression(matchType,
+ path,
+ ElementPath::LeafArrayBehavior::kNoTraversal,
+ ElementPath::NonLeafArrayBehavior::kTraverse) {}
virtual ~ArrayMatchingMatchExpression() {}
@@ -63,10 +64,6 @@ public:
bool equivalent(const MatchExpression* other) const override;
- bool shouldExpandLeafArray() const final {
- return false;
- }
-
MatchCategory getCategory() const final {
return MatchCategory::kArrayMatching;
}