Package com.mongodb.client.model.bulk
Interface ClientUpdateResult
The result of a successful individual update or replace operation.
Note that
WriteConcernError
s are not considered as making individual operations unsuccessful.- Since:
- 5.3
-
Method Summary
Modifier and TypeMethodDescriptionlong
The number of documents that matched the filter.long
The number of documents that were modified.The"_id"
of the upserted document if and only if an upsert occurred.
-
Method Details
-
getMatchedCount
long getMatchedCount()The number of documents that matched the filter.- Returns:
- The number of documents that matched the filter.
-
getModifiedCount
long getModifiedCount()The number of documents that were modified.- Returns:
- The number of documents that were modified.
-
getUpsertedId
The"_id"
of the upserted document if and only if an upsert occurred.- Returns:
- The
"_id"
of the upserted. Present if and only if an upsert occurred.
-