TResult - The type of the result.public interface FindIterable<TResult> extends MongoIterable<TResult>
| Modifier and Type | Method and Description | 
|---|---|
| FindIterable<TResult> | batchSize(int batchSize)Sets the number of documents to return per batch. | 
| FindIterable<TResult> | collation(Collation collation)Sets the collation options | 
| FindIterable<TResult> | cursorType(CursorType cursorType)Sets the cursor type. | 
| FindIterable<TResult> | filter(Bson filter)Sets the query filter to apply to the query. | 
| FindIterable<TResult> | limit(int limit)Sets the limit to apply. | 
| FindIterable<TResult> | maxAwaitTime(long maxAwaitTime,
            TimeUnit timeUnit)The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor
 query. | 
| FindIterable<TResult> | maxTime(long maxTime,
       TimeUnit timeUnit)Sets the maximum execution time on the server for this operation. | 
| FindIterable<TResult> | modifiers(Bson modifiers)Sets the query modifiers to apply to this operation. | 
| FindIterable<TResult> | noCursorTimeout(boolean noCursorTimeout)The server normally times out idle cursors after an inactivity period (10 minutes)
 to prevent excess memory use. | 
| FindIterable<TResult> | oplogReplay(boolean oplogReplay)Users should not set this under normal circumstances. | 
| FindIterable<TResult> | partial(boolean partial)Get partial results from a sharded cluster if one or more shards are unreachable (instead of throwing an error). | 
| FindIterable<TResult> | projection(Bson projection)Sets a document describing the fields to return for all matching documents. | 
| FindIterable<TResult> | skip(int skip)Sets the number of documents to skip. | 
| FindIterable<TResult> | sort(Bson sort)Sets the sort criteria to apply to the query. | 
first, forEach, into, iterator, mapforEach, spliteratorFindIterable<TResult> filter(Bson filter)
filter - the filter, which may be null.FindIterable<TResult> limit(int limit)
limit - the limit, which may be nullFindIterable<TResult> skip(int skip)
skip - the number of documents to skipFindIterable<TResult> maxTime(long maxTime, TimeUnit timeUnit)
maxTime - the max timetimeUnit - the time unit, which may not be nullFindIterable<TResult> maxAwaitTime(long maxAwaitTime, TimeUnit timeUnit)
maxAwaitTime - the max await timetimeUnit - the time unit to return the result inFindIterable<TResult> modifiers(Bson modifiers)
modifiers - the query modifiers to apply, which may be null.FindIterable<TResult> projection(Bson projection)
projection - the project document, which may be null.FindIterable<TResult> sort(Bson sort)
sort - the sort criteria, which may be null.FindIterable<TResult> noCursorTimeout(boolean noCursorTimeout)
noCursorTimeout - true if cursor timeout is disabledFindIterable<TResult> oplogReplay(boolean oplogReplay)
oplogReplay - if oplog replay is enabledFindIterable<TResult> partial(boolean partial)
partial - if partial results for sharded clusters is enabledFindIterable<TResult> cursorType(CursorType cursorType)
cursorType - the cursor typeFindIterable<TResult> batchSize(int batchSize)
batchSize in interface MongoIterable<TResult>batchSize - the batch sizeFindIterable<TResult> collation(Collation collation)
A null value represents the server default.
collation - the collation options to use