| Package | Description |
|---|---|
| org.springframework.data.mongodb.core |
MongoDB core support.
|
| org.springframework.data.mongodb.core.messaging |
MongoDB specific messaging support for listening to eg.
|
| org.springframework.data.mongodb.core.query |
MongoDB specific query and update support.
|
| org.springframework.data.mongodb.gridfs |
Support for MongoDB GridFS feature.
|
| org.springframework.data.mongodb.repository.query |
Query derivation mechanism for MongoDB specific repositories.
|
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Long> |
ReactiveMongoTemplate.count(Query query,
Class<?> entityClass) |
long |
MongoTemplate.count(Query query,
Class<?> entityClass) |
long |
MongoOperations.count(Query query,
Class<?> entityClass)
Returns the number of documents for the given
Query by querying the collection of the given entity class. |
reactor.core.publisher.Mono<Long> |
ReactiveMongoOperations.count(Query query,
Class<?> entityClass)
Returns the number of documents for the given
Query by querying the collection of the given entity class. |
reactor.core.publisher.Mono<Long> |
ReactiveMongoTemplate.count(Query query,
Class<?> entityClass,
String collectionName) |
long |
MongoTemplate.count(Query query,
Class<?> entityClass,
String collectionName) |
long |
MongoOperations.count(Query query,
Class<?> entityClass,
String collectionName)
|
reactor.core.publisher.Mono<Long> |
ReactiveMongoOperations.count(Query query,
Class<?> entityClass,
String collectionName)
|
reactor.core.publisher.Mono<Long> |
ReactiveMongoTemplate.count(Query query,
String collectionName) |
long |
MongoTemplate.count(Query query,
String collectionName) |
long |
MongoOperations.count(Query query,
String collectionName)
Returns the number of documents for the given
Query querying the given collection. |
reactor.core.publisher.Mono<Long> |
ReactiveMongoOperations.count(Query query,
String collectionName)
Returns the number of documents for the given
Query querying the given collection. |
protected <T> reactor.core.publisher.Flux<T> |
ReactiveMongoTemplate.doFindAndDelete(String collectionName,
Query query,
Class<T> entityClass)
Retrieve and remove all documents matching the given
query by calling ReactiveMongoTemplate.find(Query, Class, String)
and ReactiveMongoTemplate.remove(Query, Class, String), whereas the Query for ReactiveMongoTemplate.remove(Query, Class, String) is
constructed out of the find result. |
protected <T> List<T> |
MongoTemplate.doFindAndDelete(String collectionName,
Query query,
Class<T> entityClass)
Retrieve and remove all documents matching the given
query by calling MongoTemplate.find(Query, Class, String)
and MongoTemplate.remove(Query, Class, String), whereas the Query for MongoTemplate.remove(Query, Class, String) is
constructed out of the find result. |
protected <T> reactor.core.publisher.Mono<com.mongodb.client.result.DeleteResult> |
ReactiveMongoTemplate.doRemove(String collectionName,
Query query,
Class<T> entityClass) |
protected <T> com.mongodb.client.result.DeleteResult |
MongoTemplate.doRemove(String collectionName,
Query query,
Class<T> entityClass,
boolean multi) |
protected <T> CloseableIterator<T> |
MongoTemplate.doStream(Query query,
Class<?> entityType,
String collectionName,
Class<T> returnType) |
protected reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> |
ReactiveMongoTemplate.doUpdate(String collectionName,
Query query,
UpdateDefinition update,
Class<?> entityClass,
boolean upsert,
boolean multi) |
protected com.mongodb.client.result.UpdateResult |
MongoTemplate.doUpdate(String collectionName,
Query query,
UpdateDefinition update,
Class<?> entityClass,
boolean upsert,
boolean multi) |
void |
MongoTemplate.executeQuery(Query query,
String collectionName,
DocumentCallbackHandler dch) |
void |
MongoOperations.executeQuery(Query query,
String collectionName,
DocumentCallbackHandler dch)
Execute a MongoDB query and iterate over the query results on a per-document basis with a DocumentCallbackHandler.
|
protected void |
MongoTemplate.executeQuery(Query query,
String collectionName,
DocumentCallbackHandler documentCallbackHandler,
CursorPreparer preparer)
Execute a MongoDB query and iterate over the query results on a per-document basis with a
DocumentCallbackHandler using the provided CursorPreparer. |
reactor.core.publisher.Mono<Boolean> |
ReactiveMongoTemplate.exists(Query query,
Class<?> entityClass) |
boolean |
MongoTemplate.exists(Query query,
Class<?> entityClass) |
boolean |
MongoOperations.exists(Query query,
Class<?> entityClass)
Determine result of given
Query contains at least one element. |
reactor.core.publisher.Mono<Boolean> |
ReactiveMongoOperations.exists(Query query,
Class<?> entityClass)
Determine result of given
Query contains at least one element. |
reactor.core.publisher.Mono<Boolean> |
ReactiveMongoTemplate.exists(Query query,
Class<?> entityClass,
String collectionName) |
boolean |
MongoTemplate.exists(Query query,
Class<?> entityClass,
String collectionName) |
boolean |
MongoOperations.exists(Query query,
Class<?> entityClass,
String collectionName)
Determine result of given
Query contains at least one element. |
reactor.core.publisher.Mono<Boolean> |
ReactiveMongoOperations.exists(Query query,
Class<?> entityClass,
String collectionName)
Determine result of given
Query contains at least one element. |
reactor.core.publisher.Mono<Boolean> |
ReactiveMongoTemplate.exists(Query query,
String collectionName) |
boolean |
MongoTemplate.exists(Query query,
String collectionName) |
boolean |
MongoOperations.exists(Query query,
String collectionName)
Determine result of given
Query contains at least one element. |
reactor.core.publisher.Mono<Boolean> |
ReactiveMongoOperations.exists(Query query,
String collectionName)
Determine result of given
Query contains at least one element. |
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoTemplate.find(Query query,
Class<T> entityClass) |
<T> List<T> |
MongoTemplate.find(Query query,
Class<T> entityClass) |
<T> List<T> |
MongoOperations.find(Query query,
Class<T> entityClass)
Map the results of an ad-hoc query on the collection for the entity class to a List of the specified type.
|
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoOperations.find(Query query,
Class<T> entityClass)
Map the results of an ad-hoc query on the collection for the entity class to a
Flux of the specified type. |
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoTemplate.find(Query query,
Class<T> entityClass,
String collectionName) |
<T> List<T> |
MongoTemplate.find(Query query,
Class<T> entityClass,
String collectionName) |
<T> List<T> |
MongoOperations.find(Query query,
Class<T> entityClass,
String collectionName)
Map the results of an ad-hoc query on the specified collection to a List of the specified type.
|
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoOperations.find(Query query,
Class<T> entityClass,
String collectionName)
Map the results of an ad-hoc query on the specified collection to a
Flux of the specified type. |
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoTemplate.findAllAndRemove(Query query,
Class<T> entityClass) |
<T> List<T> |
MongoTemplate.findAllAndRemove(Query query,
Class<T> entityClass) |
<T> List<T> |
MongoOperations.findAllAndRemove(Query query,
Class<T> entityClass)
Returns and removes all documents matching the given query form the collection used to store the entityClass.
|
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoOperations.findAllAndRemove(Query query,
Class<T> entityClass)
Returns and removes all documents matching the given query form the collection used to store the entityClass.
|
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoTemplate.findAllAndRemove(Query query,
Class<T> entityClass,
String collectionName) |
<T> List<T> |
MongoTemplate.findAllAndRemove(Query query,
Class<T> entityClass,
String collectionName) |
<T> List<T> |
MongoOperations.findAllAndRemove(Query query,
Class<T> entityClass,
String collectionName)
Returns and removes all documents that match the provided query document criteria from the the collection used to
store the entityClass.
|
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoOperations.findAllAndRemove(Query query,
Class<T> entityClass,
String collectionName)
Returns and removes all documents that match the provided query document criteria from the the collection used to
store the entityClass.
|
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoTemplate.findAllAndRemove(Query query,
String collectionName) |
<T> List<T> |
MongoTemplate.findAllAndRemove(Query query,
String collectionName) |
<T> List<T> |
MongoOperations.findAllAndRemove(Query query,
String collectionName)
Returns and removes all documents form the specified collection that match the provided query.
|
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoOperations.findAllAndRemove(Query query,
String collectionName)
Returns and removes all documents form the specified collection that match the provided query.
|
<T> reactor.core.publisher.Mono<T> |
ReactiveMongoTemplate.findAndModify(Query query,
UpdateDefinition update,
Class<T> entityClass) |
<T> T |
MongoTemplate.findAndModify(Query query,
UpdateDefinition update,
Class<T> entityClass) |
<T> T |
MongoOperations.findAndModify(Query query,
UpdateDefinition update,
Class<T> entityClass)
|
<T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findAndModify(Query query,
UpdateDefinition update,
Class<T> entityClass)
|
<T> reactor.core.publisher.Mono<T> |
ReactiveMongoTemplate.findAndModify(Query query,
UpdateDefinition update,
Class<T> entityClass,
String collectionName) |
<T> T |
MongoTemplate.findAndModify(Query query,
UpdateDefinition update,
Class<T> entityClass,
String collectionName) |
<T> T |
MongoOperations.findAndModify(Query query,
UpdateDefinition update,
Class<T> entityClass,
String collectionName)
|
<T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findAndModify(Query query,
UpdateDefinition update,
Class<T> entityClass,
String collectionName)
|
<T> reactor.core.publisher.Mono<T> |
ReactiveMongoTemplate.findAndModify(Query query,
UpdateDefinition update,
FindAndModifyOptions options,
Class<T> entityClass) |
<T> T |
MongoTemplate.findAndModify(Query query,
UpdateDefinition update,
FindAndModifyOptions options,
Class<T> entityClass) |
<T> T |
MongoOperations.findAndModify(Query query,
UpdateDefinition update,
FindAndModifyOptions options,
Class<T> entityClass)
Triggers findAndModify
to apply provided
Update on documents matching Criteria of given Query taking
FindAndModifyOptions into account. |
<T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findAndModify(Query query,
UpdateDefinition update,
FindAndModifyOptions options,
Class<T> entityClass)
Triggers findAndModify
to apply provided
Update on documents matching Criteria of given Query taking
FindAndModifyOptions into account. |
<T> reactor.core.publisher.Mono<T> |
ReactiveMongoTemplate.findAndModify(Query query,
UpdateDefinition update,
FindAndModifyOptions options,
Class<T> entityClass,
String collectionName) |
<T> T |
MongoTemplate.findAndModify(Query query,
UpdateDefinition update,
FindAndModifyOptions options,
Class<T> entityClass,
String collectionName) |
<T> T |
MongoOperations.findAndModify(Query query,
UpdateDefinition update,
FindAndModifyOptions options,
Class<T> entityClass,
String collectionName)
Triggers findAndModify
to apply provided
Update on documents matching Criteria of given Query taking
FindAndModifyOptions into account. |
<T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findAndModify(Query query,
UpdateDefinition update,
FindAndModifyOptions options,
Class<T> entityClass,
String collectionName)
Triggers findAndModify
to apply provided
Update on documents matching Criteria of given Query taking
FindAndModifyOptions into account. |
<T> reactor.core.publisher.Mono<T> |
ReactiveMongoTemplate.findAndRemove(Query query,
Class<T> entityClass) |
<T> T |
MongoTemplate.findAndRemove(Query query,
Class<T> entityClass) |
<T> T |
MongoOperations.findAndRemove(Query query,
Class<T> entityClass)
Map the results of an ad-hoc query on the collection for the entity type to a single instance of an object of the
specified type.
|
<T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findAndRemove(Query query,
Class<T> entityClass)
Map the results of an ad-hoc query on the collection for the entity type to a single instance of an object of the
specified type.
|
<T> reactor.core.publisher.Mono<T> |
ReactiveMongoTemplate.findAndRemove(Query query,
Class<T> entityClass,
String collectionName) |
<T> T |
MongoTemplate.findAndRemove(Query query,
Class<T> entityClass,
String collectionName) |
<T> T |
MongoOperations.findAndRemove(Query query,
Class<T> entityClass,
String collectionName)
Map the results of an ad-hoc query on the specified collection to a single instance of an object of the specified
type.
|
<T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findAndRemove(Query query,
Class<T> entityClass,
String collectionName)
Map the results of an ad-hoc query on the specified collection to a single instance of an object of the specified
type.
|
default <S,T> T |
MongoOperations.findAndReplace(Query query,
S replacement,
FindAndReplaceOptions options,
Class<S> entityType,
Class<T> resultType)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
default <S,T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findAndReplace(Query query,
S replacement,
FindAndReplaceOptions options,
Class<S> entityType,
Class<T> resultType)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
<S,T> reactor.core.publisher.Mono<T> |
ReactiveMongoTemplate.findAndReplace(Query query,
S replacement,
FindAndReplaceOptions options,
Class<S> entityType,
String collectionName,
Class<T> resultType) |
<S,T> T |
MongoTemplate.findAndReplace(Query query,
S replacement,
FindAndReplaceOptions options,
Class<S> entityType,
String collectionName,
Class<T> resultType) |
<S,T> T |
MongoOperations.findAndReplace(Query query,
S replacement,
FindAndReplaceOptions options,
Class<S> entityType,
String collectionName,
Class<T> resultType)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
<S,T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findAndReplace(Query query,
S replacement,
FindAndReplaceOptions options,
Class<S> entityType,
String collectionName,
Class<T> resultType)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
default <T> T |
MongoOperations.findAndReplace(Query query,
T replacement)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement
document. |
default <T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findAndReplace(Query query,
T replacement)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement
document. |
default <T> T |
MongoOperations.findAndReplace(Query query,
T replacement,
FindAndReplaceOptions options)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
default <T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findAndReplace(Query query,
T replacement,
FindAndReplaceOptions options)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
default <T> T |
MongoOperations.findAndReplace(Query query,
T replacement,
FindAndReplaceOptions options,
Class<T> entityType,
String collectionName)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
default <T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findAndReplace(Query query,
T replacement,
FindAndReplaceOptions options,
Class<T> entityType,
String collectionName)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
default <T> T |
MongoOperations.findAndReplace(Query query,
T replacement,
FindAndReplaceOptions options,
String collectionName)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
default <T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findAndReplace(Query query,
T replacement,
FindAndReplaceOptions options,
String collectionName)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement document
taking FindAndReplaceOptions into account. |
default <T> T |
MongoOperations.findAndReplace(Query query,
T replacement,
String collectionName)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement
document. |
default <T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findAndReplace(Query query,
T replacement,
String collectionName)
Triggers
findOneAndReplace
to replace a single document matching
Criteria of given Query with the replacement
document. |
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoTemplate.findDistinct(Query query,
String field,
Class<?> entityClass,
Class<T> resultClass) |
<T> List<T> |
MongoTemplate.findDistinct(Query query,
String field,
Class<?> entityClass,
Class<T> resultClass) |
<T> List<T> |
MongoOperations.findDistinct(Query query,
String field,
Class<?> entityClass,
Class<T> resultClass)
Finds the distinct values for a specified field across a single
MongoCollection or view and
returns the results in a List. |
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoOperations.findDistinct(Query query,
String field,
Class<?> entityClass,
Class<T> resultClass)
Finds the distinct values for a specified field across a single
MongoCollection or view and
returns the results in a Flux. |
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoTemplate.findDistinct(Query query,
String field,
String collectionName,
Class<?> entityClass,
Class<T> resultClass) |
<T> List<T> |
MongoTemplate.findDistinct(Query query,
String field,
String collectionName,
Class<?> entityClass,
Class<T> resultClass) |
<T> List<T> |
MongoOperations.findDistinct(Query query,
String field,
String collectionName,
Class<?> entityClass,
Class<T> resultClass)
Finds the distinct values for a specified field across a single
MongoCollection or view and
returns the results in a List. |
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoOperations.findDistinct(Query query,
String field,
String collectionName,
Class<?> entityClass,
Class<T> resultClass)
Finds the distinct values for a specified field across a single
MongoCollection or view and
returns the results in a Flux. |
default <T> List<T> |
MongoOperations.findDistinct(Query query,
String field,
String collection,
Class<T> resultClass)
Finds the distinct values for a specified field across a single
MongoCollection or view and
returns the results in a List. |
default <T> reactor.core.publisher.Flux<T> |
ReactiveMongoOperations.findDistinct(Query query,
String field,
String collection,
Class<T> resultClass)
Finds the distinct values for a specified field across a single
MongoCollection or view and
returns the results in a Flux. |
<T> reactor.core.publisher.Mono<T> |
ReactiveMongoTemplate.findOne(Query query,
Class<T> entityClass) |
<T> T |
MongoTemplate.findOne(Query query,
Class<T> entityClass) |
<T> T |
MongoOperations.findOne(Query query,
Class<T> entityClass)
Map the results of an ad-hoc query on the collection for the entity class to a single instance of an object of the
specified type.
|
<T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findOne(Query query,
Class<T> entityClass)
Map the results of an ad-hoc query on the collection for the entity class to a single instance of an object of the
specified type.
|
<T> reactor.core.publisher.Mono<T> |
ReactiveMongoTemplate.findOne(Query query,
Class<T> entityClass,
String collectionName) |
<T> T |
MongoTemplate.findOne(Query query,
Class<T> entityClass,
String collectionName) |
<T> T |
MongoOperations.findOne(Query query,
Class<T> entityClass,
String collectionName)
Map the results of an ad-hoc query on the specified collection to a single instance of an object of the specified
type.
|
<T> reactor.core.publisher.Mono<T> |
ReactiveMongoOperations.findOne(Query query,
Class<T> entityClass,
String collectionName)
Map the results of an ad-hoc query on the specified collection to a single instance of an object of the specified
type.
|
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoTemplate.mapReduce(Query filterQuery,
Class<?> domainType,
Class<T> resultType,
String mapFunction,
String reduceFunction,
MapReduceOptions options) |
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoOperations.mapReduce(Query filterQuery,
Class<?> domainType,
Class<T> resultType,
String mapFunction,
String reduceFunction,
MapReduceOptions options)
Execute a map-reduce operation.
|
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoTemplate.mapReduce(Query filterQuery,
Class<?> domainType,
String inputCollectionName,
Class<T> resultType,
String mapFunction,
String reduceFunction,
MapReduceOptions options) |
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoOperations.mapReduce(Query filterQuery,
Class<?> domainType,
String inputCollectionName,
Class<T> resultType,
String mapFunction,
String reduceFunction,
MapReduceOptions options)
Execute a map-reduce operation.
|
<T> List<T> |
MongoTemplate.mapReduce(Query query,
Class<?> domainType,
String inputCollectionName,
String mapFunction,
String reduceFunction,
MapReduceOptions mapReduceOptions,
Class<T> resultType) |
<T> MapReduceResults<T> |
MongoTemplate.mapReduce(Query query,
String inputCollectionName,
String mapFunction,
String reduceFunction,
Class<T> entityClass) |
<T> MapReduceResults<T> |
MongoOperations.mapReduce(Query query,
String inputCollectionName,
String mapFunction,
String reduceFunction,
Class<T> entityClass)
Execute a map-reduce operation that takes a query.
|
<T> MapReduceResults<T> |
MongoTemplate.mapReduce(Query query,
String inputCollectionName,
String mapFunction,
String reduceFunction,
MapReduceOptions mapReduceOptions,
Class<T> entityClass) |
<T> MapReduceResults<T> |
MongoOperations.mapReduce(Query query,
String inputCollectionName,
String mapFunction,
String reduceFunction,
MapReduceOptions mapReduceOptions,
Class<T> entityClass)
Execute a map-reduce operation that takes a query and additional map-reduce options
|
ReactiveMapReduceOperation.TerminatingMapReduce<T> |
ReactiveMapReduceOperation.MapReduceWithQuery.matching(Query query)
Set the filter query to be used.
|
ReactiveFindOperation.TerminatingFind<T> |
ReactiveFindOperation.FindWithQuery.matching(Query query)
Set the filter query to be used.
|
ReactiveFindOperation.TerminatingDistinct<T> |
ReactiveFindOperation.DistinctWithQuery.matching(Query query)
Set the filter query to be used.
|
ReactiveRemoveOperation.TerminatingRemove<T> |
ReactiveRemoveOperation.RemoveWithQuery.matching(Query query)
Define the query filtering elements.
|
ExecutableRemoveOperation.TerminatingRemove<T> |
ExecutableRemoveOperation.RemoveWithQuery.matching(Query query)
Define the query filtering elements.
|
ReactiveUpdateOperation.UpdateWithUpdate<T> |
ReactiveUpdateOperation.UpdateWithQuery.matching(Query query)
Filter documents by given query.
|
ExecutableFindOperation.TerminatingFind<T> |
ExecutableFindOperation.FindWithQuery.matching(Query query)
Set the filter query to be used.
|
ExecutableFindOperation.TerminatingDistinct<T> |
ExecutableFindOperation.DistinctWithQuery.matching(Query query)
Set the filter query to be used.
|
ExecutableUpdateOperation.UpdateWithUpdate<T> |
ExecutableUpdateOperation.UpdateWithQuery.matching(Query query)
Filter documents by given query.
|
ExecutableMapReduceOperation.TerminatingMapReduce<T> |
ExecutableMapReduceOperation.MapReduceWithQuery.matching(Query query)
Set the filter query to be used.
|
BulkOperations |
BulkOperations.remove(Query remove)
Add a single remove operation to the bulk operation.
|
reactor.core.publisher.Mono<com.mongodb.client.result.DeleteResult> |
ReactiveMongoTemplate.remove(Query query,
Class<?> entityClass) |
com.mongodb.client.result.DeleteResult |
MongoTemplate.remove(Query query,
Class<?> entityClass) |
com.mongodb.client.result.DeleteResult |
MongoOperations.remove(Query query,
Class<?> entityClass)
Remove all documents that match the provided query document criteria from the the collection used to store the
entityClass.
|
reactor.core.publisher.Mono<com.mongodb.client.result.DeleteResult> |
ReactiveMongoOperations.remove(Query query,
Class<?> entityClass)
Remove all documents that match the provided query document criteria from the the collection used to store the
entityClass.
|
reactor.core.publisher.Mono<com.mongodb.client.result.DeleteResult> |
ReactiveMongoTemplate.remove(Query query,
Class<?> entityClass,
String collectionName) |
com.mongodb.client.result.DeleteResult |
MongoTemplate.remove(Query query,
Class<?> entityClass,
String collectionName) |
com.mongodb.client.result.DeleteResult |
MongoOperations.remove(Query query,
Class<?> entityClass,
String collectionName)
Remove all documents that match the provided query document criteria from the the collection used to store the
entityClass.
|
reactor.core.publisher.Mono<com.mongodb.client.result.DeleteResult> |
ReactiveMongoOperations.remove(Query query,
Class<?> entityClass,
String collectionName)
Remove all documents that match the provided query document criteria from the the collection used to store the
entityClass.
|
reactor.core.publisher.Mono<com.mongodb.client.result.DeleteResult> |
ReactiveMongoTemplate.remove(Query query,
String collectionName) |
com.mongodb.client.result.DeleteResult |
MongoTemplate.remove(Query query,
String collectionName) |
com.mongodb.client.result.DeleteResult |
MongoOperations.remove(Query query,
String collectionName)
Remove all documents from the specified collection that match the provided query document criteria.
|
reactor.core.publisher.Mono<com.mongodb.client.result.DeleteResult> |
ReactiveMongoOperations.remove(Query query,
String collectionName)
Remove all documents from the specified collection that match the provided query document criteria.
|
default BulkOperations |
BulkOperations.replaceOne(Query query,
Object replacement)
Add a single replace operation to the bulk operation.
|
BulkOperations |
BulkOperations.replaceOne(Query query,
Object replacement,
FindAndReplaceOptions options)
Add a single replace operation to the bulk operation.
|
<T> CloseableIterator<T> |
MongoTemplate.stream(Query query,
Class<T> entityType) |
<T> CloseableIterator<T> |
MongoOperations.stream(Query query,
Class<T> entityType)
Executes the given
Query on the entity collection of the specified entityType backed by a Mongo DB
FindIterable. |
<T> CloseableIterator<T> |
MongoTemplate.stream(Query query,
Class<T> entityType,
String collectionName) |
<T> CloseableIterator<T> |
MongoOperations.stream(Query query,
Class<T> entityType,
String collectionName)
Executes the given
Query on the entity collection of the specified entityType and collection backed
by a Mongo DB FindIterable. |
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoTemplate.tail(Query query,
Class<T> entityClass) |
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoOperations.tail(Query query,
Class<T> entityClass)
Map the results of an ad-hoc query on the collection for the entity class to a stream of objects of the specified
type.
|
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoTemplate.tail(Query query,
Class<T> entityClass,
String collectionName) |
<T> reactor.core.publisher.Flux<T> |
ReactiveMongoOperations.tail(Query query,
Class<T> entityClass,
String collectionName)
Map the results of an ad-hoc query on the collection for the entity class to a stream of objects of the specified
type.
|
reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> |
ReactiveMongoTemplate.updateFirst(Query query,
UpdateDefinition update,
Class<?> entityClass) |
com.mongodb.client.result.UpdateResult |
MongoTemplate.updateFirst(Query query,
UpdateDefinition update,
Class<?> entityClass) |
com.mongodb.client.result.UpdateResult |
MongoOperations.updateFirst(Query query,
UpdateDefinition update,
Class<?> entityClass)
Updates the first object that is found in the collection of the entity class that matches the query document with
the provided update document.
|
reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> |
ReactiveMongoOperations.updateFirst(Query query,
UpdateDefinition update,
Class<?> entityClass)
Updates the first object that is found in the collection of the entity class that matches the query document with
the provided update document.
|
reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> |
ReactiveMongoTemplate.updateFirst(Query query,
UpdateDefinition update,
Class<?> entityClass,
String collectionName) |
com.mongodb.client.result.UpdateResult |
MongoTemplate.updateFirst(Query query,
UpdateDefinition update,
Class<?> entityClass,
String collectionName) |
com.mongodb.client.result.UpdateResult |
MongoOperations.updateFirst(Query query,
UpdateDefinition update,
Class<?> entityClass,
String collectionName)
Updates the first object that is found in the specified collection that matches the query document criteria with
the provided updated document.
|
reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> |
ReactiveMongoOperations.updateFirst(Query query,
UpdateDefinition update,
Class<?> entityClass,
String collectionName)
Updates the first object that is found in the specified collection that matches the query document criteria with
the provided updated document.
|
reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> |
ReactiveMongoTemplate.updateFirst(Query query,
UpdateDefinition update,
String collectionName) |
com.mongodb.client.result.UpdateResult |
MongoTemplate.updateFirst(Query query,
UpdateDefinition update,
String collectionName) |
com.mongodb.client.result.UpdateResult |
MongoOperations.updateFirst(Query query,
UpdateDefinition update,
String collectionName)
Updates the first object that is found in the specified collection that matches the query document criteria with
the provided updated document.
|
reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> |
ReactiveMongoOperations.updateFirst(Query query,
UpdateDefinition update,
String collectionName)
Updates the first object that is found in the specified collection that matches the query document criteria with
the provided updated document.
|
BulkOperations |
BulkOperations.updateMulti(Query query,
Update update)
Add a single update to the bulk operation.
|
reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> |
ReactiveMongoTemplate.updateMulti(Query query,
UpdateDefinition update,
Class<?> entityClass) |
com.mongodb.client.result.UpdateResult |
MongoTemplate.updateMulti(Query query,
UpdateDefinition update,
Class<?> entityClass) |
com.mongodb.client.result.UpdateResult |
MongoOperations.updateMulti(Query query,
UpdateDefinition update,
Class<?> entityClass)
Updates all objects that are found in the collection for the entity class that matches the query document criteria
with the provided updated document.
|
reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> |
ReactiveMongoOperations.updateMulti(Query query,
UpdateDefinition update,
Class<?> entityClass)
Updates all objects that are found in the collection for the entity class that matches the query document criteria
with the provided updated document.
|
reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> |
ReactiveMongoTemplate.updateMulti(Query query,
UpdateDefinition update,
Class<?> entityClass,
String collectionName) |
com.mongodb.client.result.UpdateResult |
MongoTemplate.updateMulti(Query query,
UpdateDefinition update,
Class<?> entityClass,
String collectionName) |
com.mongodb.client.result.UpdateResult |
MongoOperations.updateMulti(Query query,
UpdateDefinition update,
Class<?> entityClass,
String collectionName)
Updates all objects that are found in the collection for the entity class that matches the query document criteria
with the provided updated document.
|
reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> |
ReactiveMongoOperations.updateMulti(Query query,
UpdateDefinition update,
Class<?> entityClass,
String collectionName)
Updates all objects that are found in the collection for the entity class that matches the query document criteria
with the provided updated document.
|
reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> |
ReactiveMongoTemplate.updateMulti(Query query,
UpdateDefinition update,
String collectionName) |
com.mongodb.client.result.UpdateResult |
MongoTemplate.updateMulti(Query query,
UpdateDefinition update,
String collectionName) |
com.mongodb.client.result.UpdateResult |
MongoOperations.updateMulti(Query query,
UpdateDefinition update,
String collectionName)
Updates all objects that are found in the specified collection that matches the query document criteria with the
provided updated document.
|
reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> |
ReactiveMongoOperations.updateMulti(Query query,
UpdateDefinition update,
String collectionName)
Updates all objects that are found in the specified collection that matches the query document criteria with the
provided updated document.
|
BulkOperations |
BulkOperations.updateOne(Query query,
Update update)
Add a single update to the bulk operation.
|
BulkOperations |
BulkOperations.upsert(Query query,
Update update)
Add a single upsert to the bulk operation.
|
reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> |
ReactiveMongoTemplate.upsert(Query query,
UpdateDefinition update,
Class<?> entityClass) |
com.mongodb.client.result.UpdateResult |
MongoTemplate.upsert(Query query,
UpdateDefinition update,
Class<?> entityClass) |
com.mongodb.client.result.UpdateResult |
MongoOperations.upsert(Query query,
UpdateDefinition update,
Class<?> entityClass)
Performs an upsert.
|
reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> |
ReactiveMongoOperations.upsert(Query query,
UpdateDefinition update,
Class<?> entityClass)
Performs an upsert.
|
reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> |
ReactiveMongoTemplate.upsert(Query query,
UpdateDefinition update,
Class<?> entityClass,
String collectionName) |
com.mongodb.client.result.UpdateResult |
MongoTemplate.upsert(Query query,
UpdateDefinition update,
Class<?> entityClass,
String collectionName) |
com.mongodb.client.result.UpdateResult |
MongoOperations.upsert(Query query,
UpdateDefinition update,
Class<?> entityClass,
String collectionName)
Performs an upsert.
|
reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> |
ReactiveMongoOperations.upsert(Query query,
UpdateDefinition update,
Class<?> entityClass,
String collectionName)
Performs an upsert.
|
reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> |
ReactiveMongoTemplate.upsert(Query query,
UpdateDefinition update,
String collectionName) |
com.mongodb.client.result.UpdateResult |
MongoTemplate.upsert(Query query,
UpdateDefinition update,
String collectionName) |
com.mongodb.client.result.UpdateResult |
MongoOperations.upsert(Query query,
UpdateDefinition update,
String collectionName)
Performs an upsert.
|
reactor.core.publisher.Mono<com.mongodb.client.result.UpdateResult> |
ReactiveMongoOperations.upsert(Query query,
UpdateDefinition update,
String collectionName)
Performs an upsert.
|
| Modifier and Type | Method and Description |
|---|---|
BulkOperations |
BulkOperations.remove(List<Query> removes)
Add a list of remove operations to the bulk operation.
|
BulkOperations |
BulkOperations.updateMulti(List<Pair<Query,Update>> updates)
Add a list of updates to the bulk operation.
|
BulkOperations |
BulkOperations.updateOne(List<Pair<Query,Update>> updates)
Add a list of updates to the bulk operation.
|
BulkOperations |
BulkOperations.upsert(List<Pair<Query,Update>> updates)
Add a list of upserts to the bulk operation.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Query> |
TailableCursorRequest.TailableCursorRequestOptions.getQuery() |
| Modifier and Type | Method and Description |
|---|---|
TailableCursorRequest.TailableCursorRequestOptions.TailableCursorRequestOptionsBuilder |
TailableCursorRequest.TailableCursorRequestOptions.TailableCursorRequestOptionsBuilder.filter(Query filter)
Set the filter to apply.
|
TailableCursorRequest.TailableCursorRequestBuilder<T> |
TailableCursorRequest.TailableCursorRequestBuilder.filter(Query filter)
Set the filter to apply.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BasicQuery
Custom
Query implementation to setup a basic query from some arbitrary JSON query string. |
class |
TextQuery
Query implementation to be used to for performing full text searches. |
| Modifier and Type | Method and Description |
|---|---|
Query |
BasicQuery.addCriteria(CriteriaDefinition criteria) |
Query |
Query.addCriteria(CriteriaDefinition criteriaDefinition)
Adds the given
CriteriaDefinition to the current Query. |
Query |
Query.allowDiskUse(boolean allowDiskUse)
Enables writing to temporary files for aggregation stages and queries.
|
Query |
Query.allowSecondaryReads()
Allows querying of a replica.
|
Query |
Query.collation(Collation collation)
Set the
Collation applying language-specific rules for string comparison. |
Query |
Query.comment(String comment)
Add a comment to the query that is propagated to the profile log.
|
Query |
Query.cursorBatchSize(int batchSize)
Set the number of documents to return in each response batch.
|
Query |
Query.exhaust() |
Query |
Query.limit(int limit)
Limit the number of returned documents to
limit. |
Query |
Query.maxTime(Duration timeout) |
Query |
Query.maxTime(long timeout,
TimeUnit timeUnit)
Deprecated.
since 2.1. Use
maxTime(Duration) instead. |
Query |
Query.maxTimeMsec(long maxTimeMsec) |
Query |
Query.noCursorTimeout() |
static Query |
Query.of(Query source)
Create an independent copy of the given
Query. |
Query |
Query.partialResults() |
static Query |
Query.query(CriteriaDefinition criteriaDefinition)
Static factory method to create a
Query using the provided CriteriaDefinition. |
Query |
Query.restrict(Class<?> type,
Class<?>... additionalTypes)
Restricts the query to only return documents instances that are exactly of the given types.
|
Query |
Query.skip(long skip)
Set number of documents to skip before returning results.
|
Query |
Query.slaveOk()
Deprecated.
since 3.0.2, use
allowSecondaryReads(). |
Query |
Query.with(Pageable pageable)
Sets the given pagination information on the
Query instance. |
Query |
Query.with(Sort sort)
|
Query |
Query.withHint(org.bson.Document hint)
Configures the query to use the given
hint when being executed. |
Query |
Query.withHint(String hint)
Configures the query to use the given hint when being executed.
|
| Modifier and Type | Method and Description |
|---|---|
static Query |
Query.of(Query source)
Create an independent copy of the given
Query. |
NearQuery |
NearQuery.query(Query query)
Adds an actual query to the
NearQuery to restrict the objects considered for the actual near operation. |
protected boolean |
Query.querySettingsEquals(Query that)
Tests whether the settings of the given
Query are equal to this query. |
| Modifier and Type | Method and Description |
|---|---|
void |
GridFsTemplate.delete(Query query) |
reactor.core.publisher.Mono<Void> |
ReactiveGridFsTemplate.delete(Query query) |
reactor.core.publisher.Mono<Void> |
ReactiveGridFsOperations.delete(Query query)
Deletes all files matching the given
Query. |
void |
GridFsOperations.delete(Query query)
Deletes all files matching the given
Query. |
com.mongodb.client.gridfs.GridFSFindIterable |
GridFsTemplate.find(Query query) |
reactor.core.publisher.Flux<com.mongodb.client.gridfs.model.GridFSFile> |
ReactiveGridFsTemplate.find(Query query) |
reactor.core.publisher.Flux<com.mongodb.client.gridfs.model.GridFSFile> |
ReactiveGridFsOperations.find(Query query)
Returns a
Flux emitting all files matching the given query. |
com.mongodb.client.gridfs.GridFSFindIterable |
GridFsOperations.find(Query query)
Returns all files matching the given query.
|
reactor.core.publisher.Mono<com.mongodb.client.gridfs.model.GridFSFile> |
ReactiveGridFsTemplate.findFirst(Query query) |
reactor.core.publisher.Mono<com.mongodb.client.gridfs.model.GridFSFile> |
ReactiveGridFsOperations.findFirst(Query query)
Returns a
Mono emitting the frist GridFSFile matching the given
query or Mono.empty() in case no file matches. |
com.mongodb.client.gridfs.model.GridFSFile |
GridFsTemplate.findOne(Query query) |
reactor.core.publisher.Mono<com.mongodb.client.gridfs.model.GridFSFile> |
ReactiveGridFsTemplate.findOne(Query query) |
reactor.core.publisher.Mono<com.mongodb.client.gridfs.model.GridFSFile> |
ReactiveGridFsOperations.findOne(Query query)
Returns a
Mono emitting a single GridFSFile matching the given
query or Mono.empty() in case no file matches. |
com.mongodb.client.gridfs.model.GridFSFile |
GridFsOperations.findOne(Query query)
Returns a single
GridFSFile matching the given query or null in
case no file matches. |
| Modifier and Type | Method and Description |
|---|---|
protected Query |
PartTreeMongoQuery.createCountQuery(ConvertingParameterAccessor accessor) |
protected Query |
AbstractMongoQuery.createCountQuery(ConvertingParameterAccessor accessor)
Creates a
Query instance using the given ConvertingParameterAccessor. |
protected Query |
StringBasedAggregation.createQuery(ConvertingParameterAccessor accessor) |
protected Query |
StringBasedMongoQuery.createQuery(ConvertingParameterAccessor accessor) |
protected Query |
PartTreeMongoQuery.createQuery(ConvertingParameterAccessor accessor) |
protected abstract Query |
AbstractMongoQuery.createQuery(ConvertingParameterAccessor accessor)
Creates a
Query instance using the given ParameterAccessor |
| Modifier and Type | Method and Description |
|---|---|
protected reactor.core.publisher.Mono<Query> |
ReactivePartTreeMongoQuery.createCountQuery(ConvertingParameterAccessor accessor) |
protected reactor.core.publisher.Mono<Query> |
AbstractReactiveMongoQuery.createCountQuery(ConvertingParameterAccessor accessor)
Creates a
Query instance using the given ConvertingParameterAccessor. |
protected reactor.core.publisher.Mono<Query> |
ReactiveStringBasedMongoQuery.createQuery(ConvertingParameterAccessor accessor) |
protected reactor.core.publisher.Mono<Query> |
ReactivePartTreeMongoQuery.createQuery(ConvertingParameterAccessor accessor) |
protected abstract reactor.core.publisher.Mono<Query> |
AbstractReactiveMongoQuery.createQuery(ConvertingParameterAccessor accessor)
Creates a
Query instance using the given ParameterAccessor |
protected reactor.core.publisher.Mono<Query> |
ReactiveStringBasedAggregation.createQuery(ConvertingParameterAccessor accessor) |
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.