com.mongodb
Class AggregationOutput

java.lang.Object
  extended by com.mongodb.AggregationOutput

public class AggregationOutput
extends Object


Field Summary
protected  DBObject _cmd
           
protected  CommandResult _commandResult
           
protected  Iterable<DBObject> _resultSet
           
 
Constructor Summary
AggregationOutput(DBObject cmd, CommandResult raw)
           
 
Method Summary
 DBObject getCommand()
          returns the original aggregation command
 CommandResult getCommandResult()
          returns the command result of the aggregation
 ServerAddress getServerUsed()
          returns the address of the server used to execute the aggregation
 Iterable<DBObject> results()
          returns an iterator to the results of the aggregation
 String toString()
          string representation of the aggregation command
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_commandResult

protected final CommandResult _commandResult

_cmd

protected final DBObject _cmd

_resultSet

protected final Iterable<DBObject> _resultSet
Constructor Detail

AggregationOutput

public AggregationOutput(DBObject cmd,
                         CommandResult raw)
Method Detail

results

public Iterable<DBObject> results()
returns an iterator to the results of the aggregation

Returns:

getCommandResult

public CommandResult getCommandResult()
returns the command result of the aggregation

Returns:

getCommand

public DBObject getCommand()
returns the original aggregation command

Returns:

getServerUsed

public ServerAddress getServerUsed()
returns the address of the server used to execute the aggregation

Returns:

toString

public String toString()
string representation of the aggregation command

Overrides:
toString in class Object