diff options
author | Pawel Terlecki <pawel.terlecki@mongodb.com> | 2019-06-03 17:45:18 -0400 |
---|---|---|
committer | Pawel Terlecki <pawel.terlecki@mongodb.com> | 2019-06-13 17:44:58 -0400 |
commit | 9a3a2f46db6738c593317f8ee220ca8dbf28e43c (patch) | |
tree | 8aaf07dc48d1c48be78ae3d7d13341a3432caa2d | |
parent | 6a161823c9dae5a10428334751b14c672fde7e68 (diff) | |
download | mongo-9a3a2f46db6738c593317f8ee220ca8dbf28e43c.tar.gz |
SERVER-41404: [FLE] Accessors needed for $graphLookup
-rw-r--r-- | src/mongo/db/pipeline/document_source_graph_lookup.h | 20 |
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; |