Spring Data Document

org.springframework.data.mongodb.core.mapreduce
Class MapReduceResults<T>

java.lang.Object
  extended by 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

Constructor Summary
MapReduceResults(List<T> mappedResults, DBObject rawResults)
          Creates a new MapReduceResults from the given mapped results and the raw one.
 
Method Summary
 MapReduceCounts getCounts()
           
 String getOutputCollection()
           
 DBObject getRawResults()
           
 MapReduceTiming getTiming()
           
 Iterator<T> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapReduceResults

public MapReduceResults(List<T> mappedResults,
                        DBObject rawResults)
Creates a new MapReduceResults from the given mapped results and the raw one.

Parameters:
mappedResults - must not be null.
rawResults - must not be null.
Method Detail

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T>

getTiming

public MapReduceTiming getTiming()

getCounts

public MapReduceCounts getCounts()

getOutputCollection

public String getOutputCollection()

getRawResults

public DBObject getRawResults()

Spring Data Document

Copyright © 2012. All Rights Reserved.