Uses of Class
dev.morphia.query.FindOptions
-
Packages that use FindOptions Package Description dev.morphia.query -
-
Uses of FindOptions in dev.morphia.query
Methods in dev.morphia.query that return FindOptions Modifier and Type Method Description FindOptions
FindOptions. batchSize(int batchSize)
Sets the number of documents to return per batch.FindOptions
FindOptions. collation(com.mongodb.client.model.Collation collation)
Sets the collationFindOptions
FindOptions. comment(java.lang.String comment)
FindOptions
FindOptions. copy()
Makes a copy of these find optionsFindOptions
FindOptions. cursorType(com.mongodb.CursorType cursorType)
Sets the cursor type.FindOptions
FindOptions. hint(com.mongodb.DBObject hint)
FindOptions
FindOptions. hintString(java.lang.String hint)
Defines the index hint valueFindOptions
FindOptions. limit(int limit)
Sets the limit to apply.FindOptions
FindOptions. max(com.mongodb.DBObject max)
FindOptions
FindOptions. maxAwaitTime(long maxAwaitTime, java.util.concurrent.TimeUnit timeUnit)
Sets the maximum await execution time on the server for this operation.FindOptions
FindOptions. maxTime(long maxTime, java.util.concurrent.TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.FindOptions
FindOptions. min(com.mongodb.DBObject min)
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. readConcern(com.mongodb.ReadConcern readConcern)
Sets the readConcernFindOptions
FindOptions. readPreference(com.mongodb.ReadPreference readPreference)
Sets the readPreferenceFindOptions
FindOptions. returnKey(boolean returnKey)
FindOptions
FindOptions. showRecordId(boolean showRecordId)
FindOptions
FindOptions. skip(int skip)
Sets the number of documents to skip.Methods in dev.morphia.query with parameters of type FindOptions Modifier and Type Method Description java.util.List<Key<T>>
Query. asKeyList(FindOptions options)
Deprecated.java.util.List<Key<T>>
QueryImpl. asKeyList(FindOptions options)
java.util.List<T>
Query. asList(FindOptions options)
Deprecated.java.util.List<T>
QueryImpl. asList(FindOptions options)
java.util.Map<java.lang.String,java.lang.Object>
Query. explain(FindOptions options)
Provides information on the query plan.java.util.Map<java.lang.String,java.lang.Object>
QueryImpl. explain(FindOptions options)
MorphiaIterator<T,T>
Query. fetch(FindOptions options)
Deprecated.useQuery.find(FindOptions)
insteadMorphiaIterator<T,T>
QueryImpl. fetch(FindOptions options)
MorphiaIterator<T,T>
Query. fetchEmptyEntities(FindOptions options)
Deprecated.useQuery.keys(FindOptions)
insteadMorphiaIterator<T,T>
QueryImpl. fetchEmptyEntities(FindOptions options)
MorphiaKeyIterator<T>
Query. fetchKeys(FindOptions options)
Deprecated.MorphiaKeyIterator<T>
QueryImpl. fetchKeys(FindOptions options)
MorphiaCursor<T>
Query. find(FindOptions options)
Execute the query and get the results.MorphiaCursor<T>
QueryImpl. find(FindOptions options)
T
Query. first(FindOptions options)
Gets the first entity in the result set.T
QueryImpl. first(FindOptions options)
T
Query. get(FindOptions options)
Deprecated.T
QueryImpl. get(FindOptions options)
Key<T>
Query. getKey(FindOptions options)
Deprecated.useMongoIterable.first()
insteadKey<T>
QueryImpl. getKey(FindOptions options)
MorphiaKeyCursor<T>
Query. keys(FindOptions options)
Execute the query and get the results (as aMorphiaCursor<Key<T>>
)MorphiaKeyCursor<T>
QueryImpl. keys(FindOptions options)
-