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