Example usage for Java com.mongodb MapReduceCommand fields, constructors, methods, implement or subclass
The text is from its open source code.
MapReduceCommand(final DBCollection inputCollection, final String map, final String reduce, @Nullable final String outputCollection, final OutputType type, final DBObject query) Represents the command for a map reduce operation Runs the command in REPLACE output type to a named collection |
String | getInput() Get the name of the collection the MapReduce will read from |
OutputType | getOutputType() Gets the OutputType for this instance. |
void | setBypassDocumentValidation(@Nullable final Boolean bypassDocumentValidation) Sets whether to bypass document validation. |
void | setCollation(final Collation collation) Sets the collation options |
void | setFinalize(@Nullable final String finalize) Sets the Finalize JS Function |
void | setJsMode(final @Nullable Boolean jsMode) Sets the (optional) JavaScript Mode |
void | setLimit(final int limit) Sets the (optional) limit on input |
void | setMaxTime(final long maxTime, final TimeUnit timeUnit) Sets the max execution time for this command, in the given time unit. |
void | setOutputDB(@Nullable final String outputDB) Sets the (optional) database name where the output collection should reside |
void | setReadPreference(@Nullable final ReadPreference preference) Sets the read preference for this command. |
void | setScope(@Nullable final Map Sets the (optional) JavaScript scope |
void | setSort(@Nullable final DBObject sort) Sets the (optional) sort specification object |
void | setVerbose(final Boolean verbose) Sets the verbosity of the MapReduce job, defaults to 'true' |
DBObject | toDBObject() Turns this command into a DBObject representation of this map reduce command. |