summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_out.h
diff options
context:
space:
mode:
authorNick Zolnierz <nicholas.zolnierz@mongodb.com>2018-07-03 15:26:53 -0400
committerNick Zolnierz <nicholas.zolnierz@mongodb.com>2018-07-05 18:02:26 -0400
commit34498176b37d708c1dbedac2b9230c6e6e8fa040 (patch)
tree0e0936567dc59c2b99f9318bec3c42888fba7160 /src/mongo/db/pipeline/document_source_out.h
parentf78056a8f1f5ea6af23bd68123659b714233b370 (diff)
downloadmongo-34498176b37d708c1dbedac2b9230c6e6e8fa040.tar.gz
SERVER-35893: Update $out to accept new syntax
Diffstat (limited to 'src/mongo/db/pipeline/document_source_out.h')
-rw-r--r--src/mongo/db/pipeline/document_source_out.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_out.h b/src/mongo/db/pipeline/document_source_out.h
index 6945c674267..41ed8c0a9d7 100644
--- a/src/mongo/db/pipeline/document_source_out.h
+++ b/src/mongo/db/pipeline/document_source_out.h
@@ -29,6 +29,7 @@
#pragma once
#include "mongo/db/pipeline/document_source.h"
+#include "mongo/db/pipeline/document_source_out_gen.h"
namespace mongo {
@@ -80,7 +81,10 @@ public:
private:
DocumentSourceOut(const NamespaceString& outputNs,
- const boost::intrusive_ptr<ExpressionContext>& pExpCtx);
+ const boost::intrusive_ptr<ExpressionContext>& expCtx,
+ WriteModeEnum mode,
+ bool dropTarget,
+ boost::optional<Document> uniqueKey);
/**
* Sets '_tempNs' to a unique temporary namespace, makes sure the output collection isn't
@@ -107,6 +111,10 @@ private:
NamespaceString _tempNs; // output goes here as it is being processed.
const NamespaceString _outputNs; // output will go here after all data is processed.
+
+ WriteModeEnum _mode;
+ bool _dropTarget;
+ boost::optional<Document> _uniqueKey;
};
} // namespace mongo