FindOptions |
FindOptions.allowDiskUse(Boolean allowDiskUse) |
Enables writing to temporary files on the server.
|
FindOptions |
FindOptions.batchSize(int batchSize) |
Sets the batch size
|
FindOptions |
FindOptions.clientSession(com.mongodb.client.ClientSession clientSession) |
Set the client session to use for the insert.
|
FindOptions |
FindOptions.collation(com.mongodb.client.model.Collation collation) |
Sets the collation to use
|
FindOptions |
FindOptions.comment(String 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(com.mongodb.CursorType cursorType) |
Sets the cursor type
|
FindOptions |
Projection.exclude(String... fields) |
Adds a field to the projection clause.
|
FindOptions |
FindOptions.hint(com.mongodb.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(org.bson.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.limit(int limit) |
Sets the limit
|
FindOptions |
FindOptions.logQuery() |
This is an experimental method.
|
FindOptions |
FindOptions.max(com.mongodb.DBObject max) |
Deprecated, for removal: This API element is subject to removal in a future version.
|
FindOptions |
FindOptions.max(org.bson.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(com.mongodb.DBObject min) |
Deprecated, for removal: This API element is subject to removal in a future version.
|
FindOptions |
FindOptions.min(org.bson.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(com.mongodb.ReadConcern readConcern) |
|
FindOptions |
FindOptions.readPreference(com.mongodb.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(Sort... sorts) |
Sets to the sort to use
|
FindOptions |
FindOptions.sort(org.bson.Document sort) |
Sets to the sort to use
|