Interface ReactiveFindOperation.TerminatingProjection
- All Known Subinterfaces:
ReactiveFindOperation.FindWithCollection<T>, ReactiveFindOperation.FindWithProjection<T>, ReactiveFindOperation.FindWithQuery<T>, ReactiveFindOperation.ReactiveFind<T>, ReactiveFindOperation.TerminatingFind<T>
- Enclosing interface:
ReactiveFindOperation
public static interface ReactiveFindOperation.TerminatingProjection
Compose find execution by calling one of the terminating methods.
- Since:
- 5.0
- Author:
- Mark Paluch, Christoph Strobl, Juergen Zimmermann
-
Method Summary
-
Method Details
-
count
Get the number of matching elements.
This method uses anaggregation executioneven for emptyquerieswhich may have an impact on performance, but guarantees shard, session and transaction compliance. In case an inaccurate count satisfies the applications needs useReactiveMongoOperations.estimatedCount(String)for empty queries instead.- Returns:
Monoemitting total number of matching elements. Never null.
-
exists
-