org.springframework.data.mongodb.core.mapreduce

Class MapReduceResults<T>

  • java.lang.Object
    • org.springframework.data.mongodb.core.mapreduce.MapReduceResults<T>
  • Type Parameters:
    T - The class in which the results are mapped onto, accessible via an iterator.
    All Implemented Interfaces:
    Iterable<T>


    public class MapReduceResults<T>
    extends Object
    implements Iterable<T>
    Collects the results of performing a MapReduce operations.
    Author:
    Mark Pollack, Oliver Gierke, Christoph Strobl, Mark Paluch
    • Constructor Detail

      • MapReduceResults

        public MapReduceResults(List<T> mappedResults,
                                com.mongodb.MapReduceOutput mapReduceOutput)
        Creates a new MapReduceResults from the given mapped results and the MapReduceOutput.
        Parameters:
        mappedResults - must not be null.
        mapReduceOutput - must not be null.
        Since:
        1.7