Interface ExecutableAggregationOperation.TerminatingAggregation<T>
- Enclosing interface:
- ExecutableAggregationOperation
public static interface ExecutableAggregationOperation.TerminatingAggregation<T>
Trigger execution by calling one of the terminating methods.
- Since:
- 2.0
- Author:
- Christoph Strobl
-
Method Summary
-
Method Details
-
all
AggregationResults<T> all()Apply pipeline operations as specified and get all matching elements.- Returns:
- never null.
-
stream
Apply pipeline operations as specified and stream all matching elements.
Returns aStream
that wraps the Mongo DBFindIterable
- Returns:
- the result
Stream
, containing mapped objects, needing to be closed once fully processed (e.g. through a try-with-resources clause).
-