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 FindOptionsFindOptions. batchSize(int batchSize)Sets the number of documents to return per batch.FindOptionsFindOptions. collation(com.mongodb.client.model.Collation collation)Sets the collationFindOptionsFindOptions. copy()Makes a copy of these find optionsFindOptionsFindOptions. cursorType(com.mongodb.CursorType cursorType)Sets the cursor type.FindOptionsFindOptions. limit(int limit)Sets the limit to apply.FindOptionsFindOptions. maxAwaitTime(long maxAwaitTime, java.util.concurrent.TimeUnit timeUnit)Sets the maximum await execution time on the server for this operation.FindOptionsFindOptions. maxTime(long maxTime, java.util.concurrent.TimeUnit timeUnit)Sets the maximum execution time on the server for this operation.FindOptionsFindOptions. modifier(java.lang.String key, java.lang.Object value)Adds a modifier to the find operationFindOptionsFindOptions. noCursorTimeout(boolean noCursorTimeout)The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use.FindOptionsFindOptions. oplogReplay(boolean oplogReplay)Users should not set this under normal circumstances.FindOptionsFindOptions. partial(boolean partial)Get partial results from a sharded cluster if one or more shards are unreachable (instead of throwing an error).FindOptionsFindOptions. readConcern(com.mongodb.ReadConcern readConcern)Sets the readConcernFindOptionsFindOptions. readPreference(com.mongodb.ReadPreference readPreference)Sets the readPreferenceFindOptionsFindOptions. 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)TQuery. first(FindOptions options)Gets the first entity in the result set.TQueryImpl. first(FindOptions options)TQuery. get(FindOptions options)Deprecated.TQueryImpl. 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)
-