public static enum MapReduceOptions.Action extends Enum<MapReduceOptions.Action>
Enum Constant and Description |
---|
MERGE
Merge the new result with the existing result if the output collection already exists.
|
REDUCE
Merge the new result with the existing result if the output collection already exists.
|
REPLACE
Replace the contents of the
collectionName if the collection with the collectionName exists. |
Modifier and Type | Method and Description |
---|---|
String |
getValue() |
static MapReduceOptions.Action |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MapReduceOptions.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MapReduceOptions.Action REPLACE
collectionName
if the collection with the collectionName
exists.public static final MapReduceOptions.Action MERGE
public static final MapReduceOptions.Action REDUCE
public static MapReduceOptions.Action[] values()
for (MapReduceOptions.Action c : MapReduceOptions.Action.values()) System.out.println(c);
public static MapReduceOptions.Action valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic String getValue()