summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/document_source.h')
-rw-r--r--src/mongo/db/pipeline/document_source.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source.h b/src/mongo/db/pipeline/document_source.h
index f792bc6eeb8..6c9dee2aa39 100644
--- a/src/mongo/db/pipeline/document_source.h
+++ b/src/mongo/db/pipeline/document_source.h
@@ -1427,6 +1427,13 @@ public:
static boost::intrusive_ptr<DocumentSource> createFromBson(
BSONElement elem, const boost::intrusive_ptr<ExpressionContext>& pExpCtx);
+ /**
+ * Build the BSONObj used to query the foreign collection.
+ */
+ static BSONObj queryForInput(const Document& input,
+ const FieldPath& localFieldName,
+ const std::string& foreignFieldName);
+
private:
DocumentSourceLookUp(NamespaceString fromNs,
std::string as,
@@ -1439,7 +1446,6 @@ private:
}
boost::optional<Document> unwindResult();
- BSONObj queryForInput(const Document& input) const;
NamespaceString _fromNs;
FieldPath _as;