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 interator.
- 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapReduceResults
public MapReduceResults(List<T> mappedResults,
DBObject rawResults)
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()
parseTiming
protected void parseTiming(DBObject rawResults)
parseCounts
protected void parseCounts(DBObject rawResults)
Copyright © 2012. All Rights Reserved.