public abstract class BulkWriteResult extends Object
Constructor and Description |
---|
BulkWriteResult() |
Modifier and Type | Method and Description |
---|---|
abstract int |
getInsertedCount()
Returns the number of documents inserted by the write operation.
|
abstract int |
getMatchedCount()
Returns the number of documents matched by updates or replacements in the write operation.
|
abstract int |
getModifiedCount()
Returns the number of documents modified by updates or replacements in the write operation.
|
abstract int |
getRemovedCount()
Returns the number of documents removed by the write operation.
|
abstract List<BulkWriteUpsert> |
getUpserts()
Gets an unmodifiable list of upserted items, or the empty list if there were none.
|
abstract boolean |
isAcknowledged()
Returns true if the write was acknowledged.
|
public abstract boolean isAcknowledged()
WriteConcern.UNACKNOWLEDGED
public abstract int getInsertedCount()
UnacknowledgedWriteException
- if the write was unacknowledged.WriteConcern.UNACKNOWLEDGED
public abstract int getMatchedCount()
UnacknowledgedWriteException
- if the write was unacknowledged.WriteConcern.UNACKNOWLEDGED
public abstract int getRemovedCount()
UnacknowledgedWriteException
- if the write was unacknowledged.WriteConcern.UNACKNOWLEDGED
public abstract int getModifiedCount()
UnacknowledgedWriteException
- if the write was unacknowledged.WriteConcern.UNACKNOWLEDGED
public abstract List<BulkWriteUpsert> getUpserts()
UnacknowledgedWriteException
- if the write was unacknowledged.WriteConcern.UNACKNOWLEDGED