Example usage for Java com.mongodb.client.result UpdateResult fields, constructors, methods, implement or subclass
The text is from its open source code.
UpdateResult | acknowledged(final long matchedCount, @Nullable final Long modifiedCount, @Nullable final BsonValue upsertedId) Create an acknowledged UpdateResult |
long | getMatchedCount() Gets the number of documents matched by the query. |
long | getModifiedCount() Gets the number of documents modified by the update. |
BsonValue | getUpsertedId() If the replace resulted in an inserted document, gets the _id of the inserted document, otherwise null. |
boolean | isModifiedCountAvailable() Gets a value indicating whether the modified count is available. |
boolean | wasAcknowledged() Returns true if the write was acknowledged. |