CatapultServer
v0.5.0.1 (Elephant)
|
Result of a bulk write operation to the database. More...
Public Member Functions | |
BulkWriteResult () | |
Creates a default bulk write result. More... | |
BulkWriteResult (const mongocxx::result::bulk_write &result) | |
Creates a bulk result from a mongo result. More... | |
Static Public Member Functions | |
static BulkWriteResult | Aggregate (const std::vector< BulkWriteResult > &results) |
Aggregates all bulk write results in results into a single result. More... | |
Public Attributes | |
int32_t | NumInserted |
Number of documents that were inserted. More... | |
int32_t | NumMatched |
Number of documents that matched existing documents. More... | |
int32_t | NumModified |
Number of existing documents that were modified. More... | |
int32_t | NumDeleted |
Number of existing documents that were deleted. More... | |
int32_t | NumUpserted |
Number of documents that were inserted because no document matched. More... | |
Result of a bulk write operation to the database.
|
inline |
Creates a default bulk write result.
|
inlineexplicit |
Creates a bulk result from a mongo result.
|
inlinestatic |
Aggregates all bulk write results in results into a single result.
int32_t catapult::mongo::BulkWriteResult::NumDeleted |
Number of existing documents that were deleted.
int32_t catapult::mongo::BulkWriteResult::NumInserted |
Number of documents that were inserted.
int32_t catapult::mongo::BulkWriteResult::NumMatched |
Number of documents that matched existing documents.
int32_t catapult::mongo::BulkWriteResult::NumModified |
Number of existing documents that were modified.
int32_t catapult::mongo::BulkWriteResult::NumUpserted |
Number of documents that were inserted because no document matched.