summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_array.h
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2017-02-22 16:44:33 -0500
committerTess Avitabile <tess.avitabile@mongodb.com>2017-02-28 10:06:12 -0500
commit0501a56bfbb9a3b7d88a9b57e371de44afe02564 (patch)
tree38d0fc418b447f30c6d752f57226c81bce7cb16b /src/mongo/db/matcher/expression_array.h
parent602a80c2b9745234daebb21dbdd81a456713cf33 (diff)
downloadmongo-0501a56bfbb9a3b7d88a9b57e371de44afe02564.tar.gz
SERVER-27904 Extend support for moving predicates into contained ORs to multikey indexes
Diffstat (limited to 'src/mongo/db/matcher/expression_array.h')
-rw-r--r--src/mongo/db/matcher/expression_array.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/matcher/expression_array.h b/src/mongo/db/matcher/expression_array.h
index 0ade4faeab0..0920467c3bf 100644
--- a/src/mongo/db/matcher/expression_array.h
+++ b/src/mongo/db/matcher/expression_array.h
@@ -96,6 +96,14 @@ public:
return _sub.get();
}
+ std::unique_ptr<MatchExpression> releaseChild() {
+ return std::move(_sub);
+ }
+
+ void resetChild(std::unique_ptr<MatchExpression> newChild) {
+ _sub = std::move(newChild);
+ }
+
private:
std::unique_ptr<MatchExpression> _sub;
};