Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
Modifier and Type | Field and Description |
---|---|
private FindOptions |
FindIterableImpl.findOptions |
Constructor and Description |
---|
FindIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
java.lang.Class<TDocument> documentClass,
java.lang.Class<TResult> resultClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
OperationExecutor executor,
Bson filter,
FindOptions findOptions) |
Modifier and Type | Field and Description |
---|---|
private FindOptions |
FindIterableImpl.findOptions |
Constructor and Description |
---|
FindIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
java.lang.Class<TDocument> documentClass,
java.lang.Class<TResult> resultClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
ReadConcern readConcern,
AsyncOperationExecutor executor,
Bson filter,
FindOptions findOptions) |
Modifier and Type | Method and Description |
---|---|
FindOptions |
FindOptions.batchSize(int batchSize)
Sets the number of documents to return per batch.
|
FindOptions |
FindOptions.collation(Collation collation)
Sets the collation options
|
FindOptions |
FindOptions.comment(java.lang.String comment)
Sets the comment to the query.
|
FindOptions |
FindOptions.cursorType(CursorType cursorType)
Sets the cursor type.
|
FindOptions |
FindOptions.hint(Bson hint)
Sets the hint for which index to use.
|
FindOptions |
FindOptions.limit(int limit)
Sets the limit to apply.
|
FindOptions |
FindOptions.max(Bson max)
Sets the exclusive upper bound for a specific index.
|
FindOptions |
FindOptions.maxAwaitTime(long maxAwaitTime,
java.util.concurrent.TimeUnit timeUnit)
Sets the maximum await execution time on the server for this operation.
|
FindOptions |
FindOptions.maxScan(long maxScan)
Sets the maximum number of documents or index keys to scan when executing the query.
|
FindOptions |
FindOptions.maxTime(long maxTime,
java.util.concurrent.TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
FindOptions |
FindOptions.min(Bson min)
Sets the minimum inclusive lower bound for a specific index.
|
FindOptions |
FindOptions.modifiers(Bson modifiers)
Deprecated.
use the individual modifier methods instead.
|
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.returnKey(boolean returnKey)
Sets the returnKey.
|
FindOptions |
FindOptions.showRecordId(boolean showRecordId)
Sets the showRecordId.
|
FindOptions |
FindOptions.skip(int skip)
Sets the number of documents to skip.
|
FindOptions |
FindOptions.snapshot(boolean snapshot)
Sets the snapshot.
|
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.
|