FindOptions |
FindOptions.allowDiskUse(Boolean allowDiskUse) |
Enables writing to temporary files on the server.
|
FindOptions |
FindOptions.batchSize(int batchSize) |
Sets the batch size
|
FindOptions |
FindOptions.collation(Collation collation) |
Sets the collation to use
|
FindOptions |
FindOptions.collection(String collection) |
|
FindOptions |
FindOptions.comment(String comment) |
Sets the comment to log with the query
|
FindOptions |
FindOptions.comment(BsonValue comment) |
Sets the comment to log with the query
|
FindOptions |
FindOptions.copy() |
|
FindOptions |
FindOptions.copy(FindOptions original) |
Creates an copy of the given options
|
FindOptions |
FindOptions.cursorType(CursorType cursorType) |
Sets the cursor type
|
FindOptions |
Projection.exclude(String... fields) |
Adds a field to the projection clause.
|
FindOptions |
FindOptions.hint(DBObject hint) |
Deprecated, for removal: This API element is subject to removal in a future version.
|
FindOptions |
FindOptions.hint(String hint) |
Defines the index hint value
|
FindOptions |
FindOptions.hint(Document hint) |
Sets the index hint
|
FindOptions |
FindOptions.hintString(String hint) |
Defines the index hint value
|
FindOptions |
Projection.include(String... fields) |
Adds a field to the projection clause.
|
FindOptions |
Projection.knownFields() |
Configure the project to only return known, mapped fields
|
FindOptions |
FindOptions.let(Document variables) |
Add top-level variables to the operation.
|
FindOptions |
FindOptions.limit(int limit) |
Sets the limit
|
FindOptions |
FindOptions.logQuery() |
This is an experimental method.
|
FindOptions |
FindOptions.max(DBObject max) |
Deprecated, for removal: This API element is subject to removal in a future version.
|
FindOptions |
FindOptions.max(Document max) |
Sets the max index value
|
FindOptions |
FindOptions.maxAwaitTime(long maxAwaitTime,
TimeUnit timeUnit) |
Sets the max await time
|
FindOptions |
FindOptions.maxTime(long maxTime,
TimeUnit timeUnit) |
Sets the max time
|
FindOptions |
FindOptions.min(DBObject min) |
Deprecated, for removal: This API element is subject to removal in a future version.
|
FindOptions |
FindOptions.min(Document min) |
Sets the min index value
|
FindOptions |
FindOptions.noCursorTimeout(boolean noCursorTimeout) |
Sets whether to disable cursor time out
|
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 |
Projection.project(Meta meta) |
Adds a metadata field to a projection.
|
FindOptions |
Projection.project(String field,
ArraySlice slice) |
Adds an sliced array field to a projection.
|
FindOptions |
FindOptions.readConcern(ReadConcern readConcern) |
|
FindOptions |
FindOptions.readPreference(ReadPreference readPreference) |
|
FindOptions |
FindOptions.returnKey(boolean returnKey) |
Sets if only the key value should be returned
|
FindOptions |
FindOptions.showRecordId(boolean showRecordId) |
Sets if the record ID should be returned
|
FindOptions |
FindOptions.skip(int skip) |
Sets how many documents to skip
|
FindOptions |
FindOptions.sort(Meta meta) |
Sets to the sort to use
|
FindOptions |
FindOptions.sort(Meta meta,
Sort... sorts) |
Sets to the sort to use
|
FindOptions |
FindOptions.sort(Sort... sorts) |
Sets to the sort to use
|
FindOptions |
FindOptions.sort(Document sort) |
Sets to the sort to use
|