Interface ReactiveMapReduceOperation

  • All Known Subinterfaces:
    ReactiveFluentMongoOperations, ReactiveMongoOperations
    All Known Implementing Classes:

    public interface ReactiveMapReduceOperation
    ReactiveMapReduceOperation allows creation and execution of MongoDB mapReduce operations in a fluent API style. The starting domainType is used for mapping an optional Query provided via matching into the MongoDB specific representation. By default, the originating domainType is also used for mapping back the results from the Document. However, it is possible to define an different returnType via as to mapping the result.
    The collection to operate on is by default derived from the initial domainType and can be defined there via Document. Using inCollection allows to override the collection name for the execution.
                 .map("function() { emit(, this.firstname) }")
                 .reduce("function(id, name) { return sum(id, name); }")
    Christoph Strobl