summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclientcursor.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2013-07-08 23:19:53 -0400
committerMathias Stearn <mathias@10gen.com>2013-07-10 17:43:58 -0400
commita51f2688fa05672d999c997170847a3ee29a223b (patch)
tree87ba82c0a3a0c0ef1ef8c8853b3e4aae775aacf0 /src/mongo/client/dbclientcursor.h
parent0f43cfcbe063c1f4615ce362e751155218224bec (diff)
downloadmongo-a51f2688fa05672d999c997170847a3ee29a223b.tar.gz
SERVER-5932 Aggregation returning a cursor
related tickets: SERVER-8261 System for commands to return cursors SERVER-10165 aggregate() helper should return cursor
Diffstat (limited to 'src/mongo/client/dbclientcursor.h')
-rw-r--r--src/mongo/client/dbclientcursor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/client/dbclientcursor.h b/src/mongo/client/dbclientcursor.h
index 46ae49c46b1..785734dac63 100644
--- a/src/mongo/client/dbclientcursor.h
+++ b/src/mongo/client/dbclientcursor.h
@@ -129,6 +129,9 @@ namespace mongo {
return (resultFlags & flag) != 0;
}
+ /// Change batchSize after construction. Can change after requesting first batch.
+ void setBatchSize(int newBatchSize) { batchSize = newBatchSize; }
+
DBClientCursor( DBClientBase* client, const string &_ns, BSONObj _query, int _nToReturn,
int _nToSkip, const BSONObj *_fieldsToReturn, int queryOptions , int bs ) :
_client(client),