Package | Description |
---|---|
com.mongodb |
Main package with core files.
|
Modifier and Type | Method and Description |
---|---|
MapReduceCommand.OutputType |
MapReduceCommand.getOutputType()
Gets the OutputType for this instance.
|
static MapReduceCommand.OutputType |
MapReduceCommand.OutputType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MapReduceCommand.OutputType[] |
MapReduceCommand.OutputType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
MapReduceOutput |
DBCollection.mapReduce(java.lang.String map,
java.lang.String reduce,
java.lang.String outputTarget,
MapReduceCommand.OutputType outputType,
DBObject query)
performs a map reduce operation
Specify an outputType to control job execution
* INLINE - Return results inline
* REPLACE - Replace the output collection with the job output
* MERGE - Merge the job output with the existing contents of outputTarget
* REDUCE - Reduce the job output with the existing contents of
outputTarget
|
Constructor and Description |
---|
MapReduceCommand(DBCollection inputCollection,
java.lang.String map,
java.lang.String reduce,
java.lang.String outputCollection,
MapReduceCommand.OutputType type,
DBObject query)
Represents the command for a map reduce operation
Runs the command in REPLACE output type to a named collection
|