Docs Menu

Class FindIterable

On this page

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

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

Constructor and Description
ThreadPoolExecutor threadPoolExecutor,
io.realm.internal.objectstore.OsMongoCollection<?> 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,
io.realm.internal.objectstore.OsMongoCollection<?> 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

←  Class AggregateIterableClass MongoCursor →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.