TResult
- The type of the result.Iterable<TResult>
, MongoIterable<TResult>
public interface ListCollectionsIterable<TResult> extends MongoIterable<TResult>
Modifier and Type | Method | Description |
---|---|---|
ListCollectionsIterable<TResult> |
batchSize(int batchSize) |
Sets the number of documents to return per batch.
|
ListCollectionsIterable<TResult> |
filter(Bson filter) |
Sets the query filter to apply to the query.
|
ListCollectionsIterable<TResult> |
maxTime(long maxTime,
TimeUnit timeUnit) |
Sets the maximum execution time on the server for this operation.
|
forEach, spliterator
ListCollectionsIterable<TResult> filter(@Nullable Bson filter)
filter
- the filter, which may be null.ListCollectionsIterable<TResult> maxTime(long maxTime, TimeUnit timeUnit)
maxTime
- the max timetimeUnit
- the time unit, which may not be nullListCollectionsIterable<TResult> batchSize(int batchSize)
batchSize
in interface MongoIterable<TResult>
batchSize
- the batch size