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 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

Constructor Summary
MapReduceResults(List<T> mappedResults, DBObject rawResults)
           
 
Method Summary
 MapReduceCounts getCounts()
           
 String getOutputCollection()
           
 DBObject getRawResults()
           
 MapReduceTiming getTiming()
           
 Iterator<T> iterator()
           
protected  void parseCounts(DBObject rawResults)
           
protected  void parseTiming(DBObject rawResults)
           
 
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)
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()

parseTiming

protected void parseTiming(DBObject rawResults)

parseCounts

protected void parseCounts(DBObject rawResults)

Spring Data Document

Copyright © 2012. All Rights Reserved.