io.realm.mongodb.mongo.result
The result of an update operation.
Constructors
Constructor and Description |
|---|
Constructs a result. |
Method Summary
Modifier and Type | Method and Description |
|---|---|
public long | Returns the number of documents matched by the query. |
public long | Returns the number of documents modified. |
public BsonValue | If the replace resulted in an inserted document, gets the _id of the inserted document, otherwise null. |
Inherited Methods
Methods inherited from class java.lang.Object :
getClass,hashCode,equals,clone,toString,notify,notifyAll,wait,wait,wait,finalize
Constructor Detail
Constructs a result. Parameters
|
Method Detail
getMatchedCount
public long getMatchedCount () |
|---|
Returns the number of documents matched by the query. Returns the number of documents matched. |
getModifiedCount
public long getModifiedCount () |
|---|
Returns the number of documents modified. Returns the number of documents modified. |
getUpsertedId
public BsonValue getUpsertedId () |
|---|
If the replace resulted in an inserted document, gets the _id of the inserted document, otherwise null. Returns if the replace resulted in an inserted document, the _id of the inserted document, otherwise null. |