diff options
author | Xinhao Zhang <xinhao.zhang@mongodb.com> | 2019-08-16 20:43:48 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-08-16 20:43:48 +0000 |
commit | f83f5784ea56d8158f8da654a964d1cd1d142648 (patch) | |
tree | d3cac5b51ef6ed7b1f727773a155fc17af3c3694 /src/mongo/db/pipeline/document_source_unwind.h | |
parent | 25418e659b3ed6d09a41c147683fa9493d1ffa29 (diff) | |
download | mongo-f83f5784ea56d8158f8da654a964d1cd1d142648.tar.gz |
SERVER-42584 PlanStageStats in aggregation
Diffstat (limited to 'src/mongo/db/pipeline/document_source_unwind.h')
-rw-r--r-- | src/mongo/db/pipeline/document_source_unwind.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_unwind.h b/src/mongo/db/pipeline/document_source_unwind.h index 4cef6983564..c3254179e88 100644 --- a/src/mongo/db/pipeline/document_source_unwind.h +++ b/src/mongo/db/pipeline/document_source_unwind.h @@ -36,9 +36,9 @@ namespace mongo { class DocumentSourceUnwind final : public DocumentSource { public: - // virtuals from DocumentSource - GetNextResult getNext() final; + static constexpr StringData kStageName = "$unwind"_sd; + // virtuals from DocumentSource const char* getSourceName() const final; Value serialize(boost::optional<ExplainOptions::Verbosity> explain = boost::none) const final; @@ -97,6 +97,8 @@ private: bool includeNullIfEmptyOrMissing, const boost::optional<FieldPath>& includeArrayIndex); + GetNextResult doGetNext() final; + // Configuration state. const FieldPath _unwindPath; // Documents that have a nullish value, or an empty array for the field '_unwindPath', will pass |