summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Terlecki <pawel.terlecki@mongodb.com>2019-06-03 17:45:18 -0400
committerPawel Terlecki <pawel.terlecki@mongodb.com>2019-06-13 17:44:58 -0400
commit9a3a2f46db6738c593317f8ee220ca8dbf28e43c (patch)
tree8aaf07dc48d1c48be78ae3d7d13341a3432caa2d
parent6a161823c9dae5a10428334751b14c672fde7e68 (diff)
downloadmongo-9a3a2f46db6738c593317f8ee220ca8dbf28e43c.tar.gz
SERVER-41404: [FLE] Accessors needed for $graphLookup
-rw-r--r--src/mongo/db/pipeline/document_source_graph_lookup.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/document_source_graph_lookup.h b/src/mongo/db/pipeline/document_source_graph_lookup.h
index 535e630acc0..6f47af20c9f 100644
--- a/src/mongo/db/pipeline/document_source_graph_lookup.h
+++ b/src/mongo/db/pipeline/document_source_graph_lookup.h
@@ -46,6 +46,26 @@ public:
const char* getSourceName() const final;
+ const FieldPath& getConnectFromField() const {
+ return _connectFromField;
+ }
+
+ const FieldPath& getConnectToField() const {
+ return _connectToField;
+ }
+
+ Expression* getStartWithField() const {
+ return _startWith.get();
+ }
+
+ boost::optional<BSONObj> getAdditionalFilter() const {
+ return _additionalFilter;
+ };
+
+ void setAdditionalFilter(boost::optional<BSONObj> additionalFilter) {
+ _additionalFilter = additionalFilter ? additionalFilter->getOwned() : additionalFilter;
+ };
+
void serializeToArray(
std::vector<Value>& array,
boost::optional<ExplainOptions::Verbosity> explain = boost::none) const final;