diff options
author | Eric Cox <eric.cox@mongodb.com> | 2021-07-21 19:03:16 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-31 01:41:48 +0000 |
commit | 07d6e82a05dbe36f94d6a32b9378b0ddabdc8045 (patch) | |
tree | 8d9666532e2a1f37805c81a87b758c21fe4d3c57 /src/mongo/client/dbclient_base.h | |
parent | 63e3eaa766bf2aea4fad1333e69d7c8d52e612e8 (diff) | |
download | mongo-07d6e82a05dbe36f94d6a32b9378b0ddabdc8045.tar.gz |
SERVER-57461 Remove SPLIT_LIMITED_SORT and associated QueryPlanner code
Diffstat (limited to 'src/mongo/client/dbclient_base.h')
-rw-r--r-- | src/mongo/client/dbclient_base.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/client/dbclient_base.h b/src/mongo/client/dbclient_base.h index c8beea97aff..83b1f688819 100644 --- a/src/mongo/client/dbclient_base.h +++ b/src/mongo/client/dbclient_base.h @@ -78,7 +78,7 @@ class DBClientQueryInterface { virtual std::unique_ptr<DBClientCursor> query( const NamespaceStringOrUUID& nsOrUuid, Query query, - int nToReturn = 0, + int limit = 0, int nToSkip = 0, const BSONObj* fieldsToReturn = nullptr, int queryOptions = 0, @@ -138,7 +138,7 @@ public: void findN(std::vector<BSONObj>& out, const std::string& ns, Query query, - int nToReturn, + int limit, int nToSkip = 0, const BSONObj* fieldsToReturn = nullptr, int queryOptions = 0, @@ -592,7 +592,7 @@ public: You may format as { query: { ... }, orderby: { ... } } to specify a sort order. - @param nToReturn n to return (i.e., limit). 0 = unlimited + @param limit - the maximum number of documents that the cursor should return. 0 = unlimited. @param nToSkip start with the nth item @param fieldsToReturn optional template of which fields to select. if unspecified, returns all fields @@ -604,7 +604,7 @@ public: std::unique_ptr<DBClientCursor> query( const NamespaceStringOrUUID& nsOrUuid, Query query, - int nToReturn = 0, + int limit = 0, int nToSkip = 0, const BSONObj* fieldsToReturn = nullptr, int queryOptions = 0, @@ -650,7 +650,6 @@ public: */ virtual std::unique_ptr<DBClientCursor> getMore(const std::string& ns, long long cursorId, - int nToReturn = 0, int options = 0); /** |