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

Class MongoCursor

java.lang.Object
io.realm.mongodb.mongo.iterable.MongoCursor

Implemented interfaces:

La clase Mongo Cursor es fundamentalmente un Iterador que contiene un elemento adicional. tryNext() método por conveniencia.

An application should ensure that a cursor is closed in all circumstances, e.g. using a try-with-resources statement.

Modificador y Tipo
Método y descripción

public void

public booleano

Resultado públicoT

next ()

Resultado públicoT

A special next() case that returns the next document if available or null.

  • Methods inherited from class java.lang.Object : getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize

public void close ()

public boolean hasNext ()

public ResultT next ()

public ResultT tryNext ()

A special next() case that returns the next document if available or null.

Devuelve

Un Task que contiene el siguiente documento si está disponible o es nulo.

Volver

FindIterable

En esta página