@ -940,6 +940,12 @@ public interface ReactiveMongoOperations extends ReactiveFluentMongoOperations {
* influence on the resulting number of documents found as those values are passed on to the server and potentially
* influence on the resulting number of documents found as those values are passed on to the server and potentially
* limit the range and order within which the server performs the count operation . Use an { @literal unpaged } query to
* limit the range and order within which the server performs the count operation . Use an { @literal unpaged } query to
* count all matches .
* count all matches .
* < p / >
* This method uses an
* { @link com . mongodb . reactivestreams . client . MongoCollection # countDocuments ( org . bson . conversions . Bson , com . mongodb . client . model . CountOptions )
* aggregation execution } even for empty { @link Query queries } which may have an impact on performance , but guarantees
* shard , session and transaction compliance . In case an inaccurate count satisfies the applications needs use
* { @link # estimatedCount ( Class ) } for empty queries instead .
*
*
* @param query the { @link Query } class that specifies the criteria used to find documents . Must not be
* @param query the { @link Query } class that specifies the criteria used to find documents . Must not be
* { @literal null } .
* { @literal null } .
@ -956,6 +962,12 @@ public interface ReactiveMongoOperations extends ReactiveFluentMongoOperations {
* influence on the resulting number of documents found as those values are passed on to the server and potentially
* influence on the resulting number of documents found as those values are passed on to the server and potentially
* limit the range and order within which the server performs the count operation . Use an { @literal unpaged } query to
* limit the range and order within which the server performs the count operation . Use an { @literal unpaged } query to
* count all matches .
* count all matches .
* < p / >
* This method uses an
* { @link com . mongodb . reactivestreams . client . MongoCollection # countDocuments ( org . bson . conversions . Bson , com . mongodb . client . model . CountOptions )
* aggregation execution } even for empty { @link Query queries } which may have an impact on performance , but guarantees
* shard , session and transaction compliance . In case an inaccurate count satisfies the applications needs use
* { @link # estimatedCount ( String ) } for empty queries instead .
*
*
* @param query the { @link Query } class that specifies the criteria used to find documents .
* @param query the { @link Query } class that specifies the criteria used to find documents .
* @param collectionName must not be { @literal null } or empty .
* @param collectionName must not be { @literal null } or empty .
@ -971,6 +983,12 @@ public interface ReactiveMongoOperations extends ReactiveFluentMongoOperations {
* influence on the resulting number of documents found as those values are passed on to the server and potentially
* influence on the resulting number of documents found as those values are passed on to the server and potentially
* limit the range and order within which the server performs the count operation . Use an { @literal unpaged } query to
* limit the range and order within which the server performs the count operation . Use an { @literal unpaged } query to
* count all matches .
* count all matches .
* < p / >
* This method uses an
* { @link com . mongodb . reactivestreams . client . MongoCollection # countDocuments ( org . bson . conversions . Bson , com . mongodb . client . model . CountOptions )
* aggregation execution } even for empty { @link Query queries } which may have an impact on performance , but guarantees
* shard , session and transaction compliance . In case an inaccurate count satisfies the applications needs use
* { @link # estimatedCount ( String ) } for empty queries instead .
*
*
* @param query the { @link Query } class that specifies the criteria used to find documents . Must not be
* @param query the { @link Query } class that specifies the criteria used to find documents . Must not be
* { @literal null } .
* { @literal null } .
@ -983,6 +1001,9 @@ public interface ReactiveMongoOperations extends ReactiveFluentMongoOperations {
/ * *
/ * *
* Estimate the number of documents , in the collection { @link # getCollectionName ( Class ) identified by the given type } ,
* Estimate the number of documents , in the collection { @link # getCollectionName ( Class ) identified by the given type } ,
* based on collection statistics .
* based on collection statistics .
* < p / >
* Please make sure to read the MongoDB reference documentation about limitations on eg . sharded cluster or inside
* transactions .
*
*
* @param entityClass must not be { @literal null } .
* @param entityClass must not be { @literal null } .
* @return a { @link Mono } emitting the estimated number of documents .
* @return a { @link Mono } emitting the estimated number of documents .
@ -996,6 +1017,9 @@ public interface ReactiveMongoOperations extends ReactiveFluentMongoOperations {
/ * *
/ * *
* Estimate the number of documents in the given collection based on collection statistics .
* Estimate the number of documents in the given collection based on collection statistics .
* < p / >
* Please make sure to read the MongoDB reference documentation about limitations on eg . sharded cluster or inside
* transactions .
*
*
* @param collectionName must not be { @literal null } .
* @param collectionName must not be { @literal null } .
* @return a { @link Mono } emitting the estimated number of documents .
* @return a { @link Mono } emitting the estimated number of documents .