Package | Description |
---|---|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
Modifier and Type | Method and Description |
---|---|
FindOptions |
FindOptions.batchSize(int batchSize)
Sets the number of documents to return per batch.
|
FindOptions |
FindOptions.cursorType(CursorType cursorType)
Sets the cursor type.
|
FindOptions |
FindOptions.limit(int limit)
Sets the limit to apply.
|
FindOptions |
FindOptions.maxAwaitTime(long maxAwaitTime,
TimeUnit timeUnit)
Sets the maximum await execution time on the server for this operation.
|
FindOptions |
FindOptions.maxTime(long maxTime,
TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
FindOptions |
FindOptions.modifiers(Bson modifiers)
Sets the query modifiers to apply to this operation.
|
FindOptions |
FindOptions.noCursorTimeout(boolean noCursorTimeout)
The server normally times out idle cursors after an inactivity period (10 minutes)
to prevent excess memory use.
|
FindOptions |
FindOptions.oplogReplay(boolean oplogReplay)
Users should not set this under normal circumstances.
|
FindOptions |
FindOptions.partial(boolean partial)
Get partial results from a sharded cluster if one or more shards are unreachable (instead of throwing an error).
|
FindOptions |
FindOptions.projection(Bson projection)
Sets a document describing the fields to return for all matching documents.
|
FindOptions |
FindOptions.skip(int skip)
Sets the number of documents to skip.
|
FindOptions |
FindOptions.sort(Bson sort)
Sets the sort criteria to apply to the query.
|
Constructor and Description |
---|
FindOptions(FindOptions from)
Construct a new instance by making a shallow copy of the given model.
|
Copyright © 2016. All Rights Reserved.