summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/expression.h
diff options
context:
space:
mode:
authorCharlie Swanson <charlie.swanson@mongodb.com>2018-08-01 08:33:20 -0400
committerCharlie Swanson <charlie.swanson@mongodb.com>2018-08-24 09:42:50 -0400
commit7987c50c9702bf2280ca4f902499f58f98448241 (patch)
tree6fda98cf2e2fcbb45fde0f4c2f693902c14f0335 /src/mongo/db/pipeline/expression.h
parentc8f5485a7c5455b5487990113597f935d1df1ddf (diff)
downloadmongo-7987c50c9702bf2280ca4f902499f58f98448241.tar.gz
SERVER-35905 Add logic to detect when $out is eligible for an exchange
Diffstat (limited to 'src/mongo/db/pipeline/expression.h')
-rw-r--r--src/mongo/db/pipeline/expression.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/expression.h b/src/mongo/db/pipeline/expression.h
index 6cfd4603bac..bc39e271575 100644
--- a/src/mongo/db/pipeline/expression.h
+++ b/src/mongo/db/pipeline/expression.h
@@ -1108,6 +1108,12 @@ public:
const std::string& raw,
const VariablesParseState& vps);
+ /**
+ * Returns true if this expression logically represents the path 'dottedPath'. For example, if
+ * 'dottedPath' is 'a.b' and this FieldPath is '$$CURRENT.a.b', returns true.
+ */
+ bool representsPath(const std::string& dottedPath) const;
+
const FieldPath& getFieldPath() const {
return _fieldPath;
}