Uses of Class
dev.morphia.query.FindOptions
-
Packages that use FindOptions Package Description dev.morphia dev.morphia.query -
-
Uses of FindOptions in dev.morphia
Methods in dev.morphia with parameters of type FindOptions Modifier and Type Method Description <T> Query<T>Datastore. find(Class<T> type, FindOptions options)Find instances of a type<T> Query<T>DatastoreImpl. find(Class<T> type, FindOptions options)StringDatastore. getLoggedQuery(FindOptions options)Deprecated, for removal: This API element is subject to removal in a future version.UseQuery.getLoggedQuery()insteadStringDatastoreImpl. getLoggedQuery(FindOptions options) -
Uses of FindOptions in dev.morphia.query
Methods in dev.morphia.query that return FindOptions Modifier and Type Method Description FindOptionsFindOptions. allowDiskUse(Boolean allowDiskUse)Enables writing to temporary files on the server.FindOptionsFindOptions. batchSize(int batchSize)Sets the batch sizeFindOptionsFindOptions. collation(Collation collation)Sets the collation to useFindOptionsFindOptions. collection(String collection)FindOptionsFindOptions. comment(String comment)Sets the comment to log with the queryFindOptionsFindOptions. comment(BsonValue comment)Sets the comment to log with the queryFindOptionsFindOptions. copy()FindOptionsFindOptions. copy(FindOptions original)Creates an copy of the given optionsFindOptionsFindOptions. cursorType(CursorType cursorType)Sets the cursor typeFindOptionsProjection. exclude(String... fields)Adds a field to the projection clause.FindOptionsFindOptions. hint(DBObject hint)Deprecated, for removal: This API element is subject to removal in a future version.FindOptionsFindOptions. hint(String hint)Defines the index hint valueFindOptionsFindOptions. hint(Document hint)Sets the index hintFindOptionsFindOptions. hintString(String hint)Defines the index hint valueFindOptionsProjection. include(String... fields)Adds a field to the projection clause.FindOptionsProjection. knownFields()Configure the project to only return known, mapped fieldsFindOptionsFindOptions. let(Document variables)Add top-level variables to the operation.FindOptionsFindOptions. limit(int limit)Sets the limitFindOptionsFindOptions. logQuery()This is an experimental method.FindOptionsFindOptions. max(DBObject max)Deprecated, for removal: This API element is subject to removal in a future version.FindOptionsFindOptions. max(Document max)Sets the max index valueFindOptionsFindOptions. maxAwaitTime(long maxAwaitTime, TimeUnit timeUnit)Sets the max await timeFindOptionsFindOptions. maxTime(long maxTime, TimeUnit timeUnit)Sets the max timeFindOptionsFindOptions. min(DBObject min)Deprecated, for removal: This API element is subject to removal in a future version.FindOptionsFindOptions. min(Document min)Sets the min index valueFindOptionsFindOptions. noCursorTimeout(boolean noCursorTimeout)Sets whether to disable cursor time outFindOptionsFindOptions. 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).FindOptionsProjection. project(Meta meta)Adds a metadata field to a projection.FindOptionsProjection. project(String field, ArraySlice slice)Adds an sliced array field to a projection.FindOptionsFindOptions. readConcern(ReadConcern readConcern)FindOptionsFindOptions. readPreference(ReadPreference readPreference)FindOptionsFindOptions. returnKey(boolean returnKey)Sets if only the key value should be returnedFindOptionsFindOptions. showRecordId(boolean showRecordId)Sets if the record ID should be returnedFindOptionsFindOptions. skip(int skip)Sets how many documents to skipFindOptionsFindOptions. sort(Meta meta)Sets to the sort to useFindOptionsFindOptions. sort(Meta meta, Sort... sorts)Sets to the sort to useFindOptionsFindOptions. sort(Sort... sorts)Sets to the sort to useFindOptionsFindOptions. sort(Document sort)Sets to the sort to useFindOptionsFindOptions. timeoutMode(TimeoutMode timeoutMode)Methods in dev.morphia.query with parameters of type FindOptions Modifier and Type Method Description FindOptionsFindOptions. copy(FindOptions original)Creates an copy of the given options<T> Query<T>DefaultQueryFactory. createQuery(Datastore datastore, Class<T> type, FindOptions options, Document query)<T> Query<T>LegacyQueryFactory. createQuery(Datastore datastore, Class<T> type, FindOptions options, Document seed)Deprecated.default <T> Query<T>QueryFactory. createQuery(Datastore datastore, Class<T> type, FindOptions options)Creates a new query for the given type.<T> Query<T>QueryFactory. createQuery(Datastore datastore, Class<T> type, FindOptions options, Document query)Creates and returns aQueryfor the given arguments.dev.morphia.query.internal.MorphiaCursor<T>LegacyQuery. execute(FindOptions options)Deprecated, for removal: This API element is subject to removal in a future version.default dev.morphia.query.internal.MorphiaCursor<T>Query. execute(FindOptions options)Deprecated, for removal: This API element is subject to removal in a future version.Map<String,Object>LegacyQuery. explain(FindOptions options, ExplainVerbosity verbosity)Deprecated.Map<String,Object>MorphiaQuery. explain(FindOptions options, ExplainVerbosity verbosity)default Map<String,Object>Query. explain(FindOptions options)Deprecated, for removal: This API element is subject to removal in a future version.useDatastore.find(Class, FindOptions)insteadMap<String,Object>Query. explain(FindOptions options, ExplainVerbosity verbosity)Deprecated, for removal: This API element is subject to removal in a future version.useDatastore.find(Class, FindOptions)insteaddefault dev.morphia.query.internal.MorphiaCursor<T>Query. find(FindOptions options)Deprecated, for removal: This API element is subject to removal in a future version.TLegacyQuery. first(FindOptions options)Deprecated.TMorphiaQuery. first(FindOptions options)TQuery. first(FindOptions options)Deprecated, for removal: This API element is subject to removal in a future version.useDatastore.find(Class, FindOptions)insteaddev.morphia.query.internal.MorphiaCursor<T>LegacyQuery. iterator(FindOptions options)Deprecated.dev.morphia.query.internal.MorphiaCursor<T>MorphiaQuery. iterator(FindOptions options)dev.morphia.query.internal.MorphiaCursor<T>Query. iterator(FindOptions options)Deprecated, for removal: This API element is subject to removal in a future version.useDatastore.find(Class, FindOptions)insteaddev.morphia.query.internal.MorphiaKeyCursor<T>LegacyQuery. keys(FindOptions options)Deprecated.dev.morphia.query.internal.MorphiaKeyCursor<T>MorphiaQuery. keys(FindOptions options)dev.morphia.query.internal.MorphiaKeyCursor<T>Query. keys(FindOptions options)Deprecated, for removal: This API element is subject to removal in a future version.default Stream<T>Query. stream(FindOptions options)Deprecated, for removal: This API element is subject to removal in a future version.useDatastore.find(Class, FindOptions)insteadConstructors in dev.morphia.query with parameters of type FindOptions Constructor Description LegacyQuery(Datastore datastore, String collectionName, Class<T> type, FindOptions options)Deprecated.Creates a Query for the given type and collectionMorphiaQuery(Datastore datastore, Class<T> type, FindOptions options, Document query)
-