18 #include "mongo/client/write_operation_base.h"
virtual const char * batchName() const
Returns the name for a batch of this type of write operation.
Utility functions for parsing numbers from strings.
Definition: compare_numbers.h:20
virtual int incrementalSize() const
Returns the incremental size (in bytes) required to add this write operation to a batch...
virtual void appendSelfToBSONObj(BSONObjBuilder *obj) const
Appends the data represented by an instance of this class to a BSONObjBuilder.
Utility for creating a BSONObj.
Definition: bsonobjbuilder.h:53
Definition: update_write_operation.h:22
virtual void startRequest(const std::string &ns, bool ordered, BufBuilder *builder) const
Appends the preamble for a wire protocol message into the supplied BufBuilder.
Definition: write_operation_base.h:24
Definition: bsonobjbuilder.h:765
C++ representation of a "BSON" object – that is, an extended JSON-style object in a binary represent...
Definition: bsonobj.h:78
virtual void appendSelfToCommand(BSONArrayBuilder *batch) const
Appends a single document that describes the write operation represented by an instance of this class...
virtual void startCommand(const std::string &ns, BSONObjBuilder *command) const
Appends the preamble for a write command into the supplied BSONObjBuilder.
virtual void appendSelfToRequest(BufBuilder *builder) const
Appends a document (or documents in the case of update) which describe the write operation represente...
virtual WriteOpType operationType() const
Returns the MongoDB wire protocol operation type represented by an instance of this particular write ...