net.vz.mongodb.jackson
Class MapReduceOutput<T,K>

java.lang.Object
  extended by net.vz.mongodb.jackson.MapReduceOutput<T,K>

public class MapReduceOutput<T,K>
extends Object

Represents the result of a Map/Reduce operation

Since:
1.4
Author:
James Roper

Method Summary
 void drop()
          Drops the collection that holds the results
 com.mongodb.DBObject getCommand()
           
 com.mongodb.CommandResult getCommandResult()
           
 JacksonDBCollection<T,K> getOutputCollection()
          Gets the collection that holds the results (Will return null if results are Inline)
 com.mongodb.ServerAddress getServerUsed()
           
 Iterable<T> results()
          Returns a cursor to the results of the operation
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

results

public Iterable<T> results()
Returns a cursor to the results of the operation

Returns:
A cursor to the results of the operation

drop

public void drop()
Drops the collection that holds the results


getOutputCollection

public JacksonDBCollection<T,K> getOutputCollection()
Gets the collection that holds the results (Will return null if results are Inline)

Returns:
The collection that holds the results

getCommandResult

public com.mongodb.CommandResult getCommandResult()

getCommand

public com.mongodb.DBObject getCommand()

getServerUsed

public com.mongodb.ServerAddress getServerUsed()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011-2012 VZ Netzwerke. All Rights Reserved.