public class AggregationOutput extends Object
Modifier and Type | Field and Description |
---|---|
protected DBObject |
_cmd |
protected CommandResult |
_commandResult |
protected Iterable<DBObject> |
_resultSet |
Constructor and Description |
---|
AggregationOutput(DBObject cmd,
CommandResult raw) |
Modifier and Type | Method and Description |
---|---|
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
|
protected final CommandResult _commandResult
protected final DBObject _cmd
public AggregationOutput(DBObject cmd, CommandResult raw)
public Iterable<DBObject> results()
public CommandResult getCommandResult()
public DBObject getCommand()
public ServerAddress getServerUsed()