Join us at MongoDB.local London on 7 May to unlock new possibilities for your data. Use WEB50 to save 50%.
Register now >
Docs Menu
Docs Home
/ /
io.realm.mongodb.mongo.result

Clase UpdateResult

java.lang.Object
io.realm.mongodb.mongo.result.UpdateResult

El resultado de una operación de actualización.

Constructor and Description
long matchedCount,
long modifiedCount,
BsonValue upsertedId
)

Constructs a result.

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.

  • Métodos heredados de la clase java.lang.Object: getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize

public UpdateResult (
long matchedCount,
long modifiedCount,
BsonValue upsertedId
)

Constructs a result.

Parámetros

  • matchedCount - the number of documents matched by the query.

  • modifiedCount - el número de documentos modificados.

  • upsertedId - el _id del documento insertado si el reemplazo resultó en un documento insertado, de lo contrario, nulo.

public long getMatchedCount ()

Returns the number of documents matched by the query.

Devuelve

el número de documentos coincidentes.

public long getModifiedCount ()

Devuelve el número de documentos modificados.

Devuelve

the number of documents modified.

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.

Volver

InsertOneResult

En esta página