Library: MongoDB
Package: MongoDB
Header: Poco/MongoDB/GetMoreRequest.h
Class for creating an OP_GETMORE client request. This request is used to query the database for more documents in a collection after a query request is send.
Direct Base Classes: RequestMessage
All Base Classes: Message, RequestMessage
Member Functions: buildRequest, cursorID, getNumberToReturn, setNumberToReturn
Inherited Functions: buildRequest, header, messageLength, send
GetMoreRequest(
const std::string & collectionName,
Int64 cursorID
);
Constructor. The full collection name is the concatenation of the database name with the collection name, using a "." for the concatenation. For example, for the database "foo" and the collection "bar", the full collection name is "foo.bar". The cursorID has been returned by the response on the query request. By default the numberToReturn is set to 100.
virtual ~GetMoreRequest();
Destructor
Int64 cursorID() const;
Returns the cursor id
Int32 getNumberToReturn() const;
Returns the limit of returned documents
void setNumberToReturn(
Int32 n
);
Sets the limit of returned documents
void buildRequest(
BinaryWriter & writer
);