Docs Menu
Docs Home
/ /
Atlas Device SDKs
/ / /

Class FindIterable

On this page

  • io.realm.mongodb.mongo.iterable
  • Constructors
  • Method Summary
  • Inherited Methods
  • Constructor Detail
  • Method Detail
  • filter
  • limit
  • projection
  • sort
io.realm.mongodb.mongo.iterable.MongoIterable
io.realm.mongodb.mongo.iterable.FindIterable

Specific iterable for io.realm.mongodb.mongo.MongoCollection.find() operations.

Constructor and Description
ThreadPoolExecutor threadPoolExecutor,
<any> osMongoCollection,
CodecRegistry codecRegistry,
)
Modifier and Type
Method and Description
Bson filter
)

Sets the query filter to apply to the query.

int limit
)

Sets the limit to apply.

Bson projection
)

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

Bson sort
)

Sets the sort criteria to apply to the query.

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

  • Methods inherited from class io.realm.mongodb.mongo.iterable.MongoIterable : iterator , first

public FindIterable (
ThreadPoolExecutor threadPoolExecutor,
<any> osMongoCollection,
CodecRegistry codecRegistry,
)
Bson filter
)

Sets the query filter to apply to the query.

Parameters

  • filter - the filter, which may be null.

Returns

this

int limit
)

Sets the limit to apply.

Parameters

  • limit - the limit, which may be 0

Returns

this

Bson projection
)

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

Parameters

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

Returns

this

Bson sort
)

Sets the sort criteria to apply to the query.

Parameters

  • sort - the sort criteria, which may be null.

Returns

this

Back

AggregateIterable

Next

MongoCursor