Returns the number of documents inserted by the write operation.
Returns the number of documents inserted by the write operation.
the number of documents inserted by the write operation
if the write was unacknowledged.
WriteConcern#Unacknowledged
Returns true if the write was acknowledged.
Returns true if the write was acknowledged.
true if the write was acknowledged
WriteConcern#Unacknowledged
Returns the number of documents matched by updates or replacements in the write operation.
Returns the number of documents matched by updates or replacements in the write operation. This will include documents that matched the query but where the modification didn't result in any actual change to the document; for example, if you set the value of some field, and the field already has that value, that will still count as an update.
the number of documents matched by updates in the write operation
if the write was unacknowledged.
WriteConcern#Unacknowledged
Returns the number of documents modified by updates or replacements in the write operation.
Returns the number of documents modified by updates or replacements in the write operation. This will only count documents that were actually changed; for example, if you set the value of some field, and the field already has that value, that will not count as a modification.
If the server is not able to provide a count of modified documents (which can happen if the server is not at least version 2.6), then this method will return a Failure(UnsupportedOperationException)
the Success(number) of documents modified by the write operation or Failure(UnacknowledgedWriteException) or Failure(UnsupportedOperationException) if no modified count is available
WriteConcern#UNACKNOWLEDGED
Returns the number of documents removed by the write operation.
Returns the number of documents removed by the write operation.
the number of documents removed by the write operation
if the write was unacknowledged.
WriteConcern#Unacknowledged
Gets a list of upserted items, or the empty list if there were none.
Gets a list of upserted items, or the empty list if there were none.
a list of upserted items, or the empty list if there were none.
if the write was unacknowledged.
WriteConcern#Unacknowledged