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.options

Clase FindOptions

java.lang.Object
io.realm.mongodb.mongo.options.FindOptions

Las opciones para aplicar a una operación de find (también comúnmente conocida como query).

Constructor and Description

Construct a new instance.

Modificador y Tipo
Método y descripción

public int

Gets the limit to apply.

public Bson

Gets a document describing the fields to return for all matching documents.

public Bson

Obtiene los criterios de ordenación que se aplicarán a la query.

int limit
)

Sets the limit to apply.

Bson projection
)

Sets a document describing the fields to return for all matching documents.

Bson sort
)

Establece los criterios de ordenación a aplicar en la query.

public String

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

public FindOptions ()

Construct a new instance.

public int getLimit ()

Obtiene el límite a aplicar. El valor predeterminado es nulo.

Devuelve

el límite

public Bson getProjection ()

Gets a document describing the fields to return for all matching documents.

Devuelve

the project document, which may be null

public Bson getSort ()

Gets the sort criteria to apply to the query. The default is null, which means that the documents will be returned in an undefined order.

Devuelve

un documento que describe los criterios de clasificación

int limit
)

Sets the limit to apply.

Parámetros

  • limit - the limit, which may be null

Devuelve

this

Bson projection
)

Sets a document describing the fields to return for all matching documents.

Parámetros

  • projection - the project document, which may be null.

Devuelve

this

public FindOptions sort (
Bson sort
)

Establece los criterios de ordenación a aplicar en la query.

Parámetros

  • sort - los criterios de ordenación, que pueden ser nulos.

Devuelve

this

public String toString ()

Anulaciones

toString en la clase Objeto

Volver

FindOneAndModifyOptions

En esta página