Interface ClientUpdateResult


@Evolving public interface ClientUpdateResult
The result of a successful individual update or replace operation. Note that WriteConcernErrors are not considered as making individual operations unsuccessful.
Since:
5.3
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    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

      Optional<BsonValue> 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.