Docs Menu

Class FindIterable

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.

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

← 
 →