Sets the number of documents to return per batch.
Sets the number of documents to return per batch.
the batch size
this
Sets the query filter to apply to the query.
Sets the query filter to apply to the query.
Below is an example of filtering against the filename and some nested metadata that can also be stored along with the file data:
Filters.and(Filters.eq("filename", "mongodb.png"), Filters.eq("metadata.contentType", "image/png"));
the filter, which may be null.
this
Sets the limit to apply.
Sets the maximum execution time on the server for this operation.
Sets the maximum execution time on the server for this operation.
the duration
this
The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use.
The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use. Set this option to prevent that.
true if cursor timeout is disabled
this
Sets the number of documents to skip.
Sets the sort criteria to apply to the query.
Sets the sort criteria to apply to the query.
the sort criteria, which may be null.
this
Request Observable
to start streaming data.
Request Observable
to start streaming data.
This is a "factory method" and can be called multiple times, each time starting a new org.mongodb.scala.Subscription.
Each Subscription
will work for only a single Observer.
If the Observable
rejects the subscription attempt or otherwise fails it will signal the error via Observer.onError.
the Observer
that will consume signals from this Observable
Handles the automatic boxing of a Java Observable
so it conforms to the interface.
Handles the automatic boxing of a Java Observable
so it conforms to the interface.
the Observer
that will consume signals from this Observable
Users should not have to implement this method but rather use the Scala Observable
.
Observable representing the GridFS Files Collection.
1.2