summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/aggregation_request.h
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2017-01-11 17:14:40 -0500
committerTess Avitabile <tess.avitabile@mongodb.com>2017-01-13 17:56:02 -0500
commit92e599237444912607e70a745fe5c0aa00dd4caf (patch)
tree3241f19d67635438a2ceb142d0584d0bb38b5bce /src/mongo/db/pipeline/aggregation_request.h
parent5c2aac3b24d0680418ee8fab1fa6e53be2a0eede (diff)
downloadmongo-92e599237444912607e70a745fe5c0aa00dd4caf.tar.gz
SERVER-24623 Remove single document aggregation result option
Diffstat (limited to 'src/mongo/db/pipeline/aggregation_request.h')
-rw-r--r--src/mongo/db/pipeline/aggregation_request.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/mongo/db/pipeline/aggregation_request.h b/src/mongo/db/pipeline/aggregation_request.h
index 3a8844b00e9..4a3ef4c0223 100644
--- a/src/mongo/db/pipeline/aggregation_request.h
+++ b/src/mongo/db/pipeline/aggregation_request.h
@@ -81,7 +81,7 @@ public:
// Getters.
//
- boost::optional<long long> getBatchSize() const {
+ long long getBatchSize() const {
return _batchSize;
}
@@ -96,10 +96,6 @@ public:
return _pipeline;
}
- bool isCursorCommand() const {
- return _cursorCommand;
- }
-
bool isExplain() const {
return _explain;
}
@@ -128,8 +124,7 @@ public:
//
/**
- * Must be either unset or non-negative. Negative batchSize is illegal but batchSize of 0 is
- * allowed.
+ * Negative batchSize is illegal but batchSize of 0 is allowed.
*/
void setBatchSize(long long batchSize) {
uassert(40203, "batchSize must be non-negative", batchSize >= 0);
@@ -140,10 +135,6 @@ public:
_collation = collation.getOwned();
}
- void setCursorCommand(bool isCursorCommand) {
- _cursorCommand = isCursorCommand;
- }
-
void setExplain(bool isExplain) {
_explain = isExplain;
}
@@ -168,9 +159,9 @@ private:
// An unparsed version of the pipeline.
const std::vector<BSONObj> _pipeline;
- // Optional fields.
+ long long _batchSize;
- boost::optional<long long> _batchSize;
+ // Optional fields.
// An owned copy of the user-specified collation object, or an empty object if no collation was
// specified.
@@ -180,6 +171,5 @@ private:
bool _allowDiskUse = false;
bool _fromRouter = false;
bool _bypassDocumentValidation = false;
- bool _cursorCommand = false;
};
} // namespace mongo