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

    Modifier and Type
    Method
    Description
    all()
    Apply pipeline operations as specified and get all matching elements.
    Apply pipeline operations as specified and stream all matching elements.
  • Method Details

    • all

      Apply pipeline operations as specified and get all matching elements.
      Returns:
      never null.
    • stream

      Stream<T> stream()
      Apply pipeline operations as specified and stream all matching elements.
      Returns a Stream that wraps the Mongo DB FindIterable
      Returns:
      the result Stream, containing mapped objects, needing to be closed once fully processed (e.g. through a try-with-resources clause).