Package com.mongodb.client.model
Enum Class MapReduceAction
- All Implemented Interfaces:
Serializable
,Comparable<MapReduceAction>
,java.lang.constant.Constable
Deprecated.
Superseded by aggregate
The map reduce to collection actions.
These actions are only available when passing out a collection that already exists. This option is not available on secondary members of replica sets. The Enum values dictate what to do with the output collection if it already exists when the map reduce is run.
- Since:
- 3.0
- MongoDB documentation
- mapReduce Command
- mapReduce Overview
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated.Merge the new result with the existing result if the output collection already exists.Deprecated.Merge the new result with the existing result if the output collection already exists.Deprecated.Replace the contents of thecollectionName
if the collection with thecollectionName
exists. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
Deprecated.static MapReduceAction
Deprecated.Returns the enum constant of this class with the specified name.static MapReduceAction[]
values()
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REPLACE
Deprecated.Replace the contents of thecollectionName
if the collection with thecollectionName
exists. -
MERGE
Deprecated.Merge the new result with the existing result if the output collection already exists. If an existing document has the same key as the new result, overwrite that existing document. -
REDUCE
Deprecated.Merge the new result with the existing result if the output collection already exists. If an existing document has the same key as the new result, apply the reduce function to both the new and the existing documents and overwrite the existing document with the result.
-
-
Method Details
-
values
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
Deprecated.- Returns:
- the String representation of this Action that the MongoDB server understands
-