io.realm.mongodb.mongo.result
El resultado de una operación de actualización.
Constructores
Constructor and Description |
|---|
Constructs a result. |
Resumen del método
Modificador y Tipo | Método y descripción |
|---|---|
public long | Returns the number of documents matched by the query. |
public long | Devuelve el número de documentos modificados. |
public BsonValue | If the replace resulted in an inserted document, gets the _id of the inserted document, otherwise null. |
Inherited Methods
Métodos heredados de la clase java.lang.Object:
getClass,hashCode,equals,clone,toString,notify,notifyAll,wait,wait,wait,finalize
Detalle del constructor
Constructs a result. Parámetros
|
Detalle del método
getMatchedCount
public long getMatchedCount () |
|---|
Returns the number of documents matched by the query. Devuelve el número de documentos coincidentes. |
getModifiedCount
public long getModifiedCount () |
|---|
Devuelve el número de documentos modificados. Devuelve 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. Devuelve Si el reemplazo resultó en un documento insertado, el _id del documento insertado, de lo contrario, nulo. |