summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/pipeline.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/pipeline.h')
-rw-r--r--src/mongo/db/pipeline/pipeline.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/pipeline.h b/src/mongo/db/pipeline/pipeline.h
index c682d49cc62..0f9e93984dd 100644
--- a/src/mongo/db/pipeline/pipeline.h
+++ b/src/mongo/db/pipeline/pipeline.h
@@ -89,6 +89,11 @@ public:
BSONObj getInitialQuery() const;
/**
+ * Returns true if the pipeline has an $out stage, and false otherwise.
+ */
+ bool hasOutStage() const;
+
+ /**
Write the Pipeline as a BSONObj command. This should be the
inverse of parseCommand().