Spring Data Document

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

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

public class GroupByResults<T>
extends Object
implements Iterable<T>

Collects the results of executing a group operation.

Author:
Mark Pollack

Constructor Summary
GroupByResults(List<T> mappedResults, DBObject rawResults)
           
 
Method Summary
 double getCount()
           
 int getKeys()
           
 DBObject getRawResults()
           
 String getServerUsed()
           
 Iterator<T> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupByResults

public GroupByResults(List<T> mappedResults,
                      DBObject rawResults)
Method Detail

getCount

public double getCount()

getKeys

public int getKeys()

getServerUsed

public String getServerUsed()

iterator

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

getRawResults

public DBObject getRawResults()

Spring Data Document

Copyright © 2012. All Rights Reserved.