T
- The type of the result.public interface FindFluent<T> extends MongoIterable<T>
Modifier and Type | Method and Description |
---|---|
FindFluent<T> |
batchSize(int batchSize)
Sets the number of documents to return per batch.
|
FindFluent<T> |
cursorType(CursorType cursorType)
Sets the cursor type.
|
FindFluent<T> |
filter(Object filter)
Sets the query filter to apply to the query.
|
FindFluent<T> |
limit(int limit)
Sets the limit to apply.
|
FindFluent<T> |
maxTime(long maxTime,
TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
FindFluent<T> |
modifiers(Object modifiers)
Sets the query modifiers to apply to this operation.
|
FindFluent<T> |
noCursorTimeout(boolean noCursorTimeout)
The server normally times out idle cursors after an inactivity period (10 minutes)
to prevent excess memory use.
|
FindFluent<T> |
oplogReplay(boolean oplogReplay)
Users should not set this under normal circumstances.
|
FindFluent<T> |
partial(boolean partial)
Get partial results from a sharded cluster if one or more shards are unreachable (instead of throwing an error).
|
FindFluent<T> |
projection(Object projection)
Sets a document describing the fields to return for all matching documents.
|
FindFluent<T> |
skip(int skip)
Sets the number of documents to skip.
|
FindFluent<T> |
sort(Object sort)
Sets the sort criteria to apply to the query.
|
FindFluent<T> filter(Object filter)
filter
- the filter, which may be null.FindFluent<T> limit(int limit)
limit
- the limit, which may be nullFindFluent<T> skip(int skip)
skip
- the number of documents to skipFindFluent<T> maxTime(long maxTime, TimeUnit timeUnit)
maxTime
- the max timetimeUnit
- the time unit, which may not be nullFindFluent<T> batchSize(int batchSize)
batchSize
- the batch sizeFindFluent<T> modifiers(Object modifiers)
modifiers
- the query modifiers to apply, which may be null.FindFluent<T> projection(Object projection)
projection
- the project document, which may be null.FindFluent<T> sort(Object sort)
sort
- the sort criteria, which may be null.FindFluent<T> noCursorTimeout(boolean noCursorTimeout)
noCursorTimeout
- true if cursor timeout is disabledFindFluent<T> oplogReplay(boolean oplogReplay)
oplogReplay
- if oplog replay is enabledFindFluent<T> partial(boolean partial)
partial
- if partial results for sharded clusters is enabledFindFluent<T> cursorType(CursorType cursorType)
cursorType
- the cursor type