public enum MapReduceAction extends java.lang.Enum<MapReduceAction>
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.
| 枚举常量和说明 |
|---|
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. |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getValue() |
static MapReduceAction |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static MapReduceAction[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final MapReduceAction REPLACE
collectionName if the collection with the collectionName exists.public static final MapReduceAction MERGE
public static final MapReduceAction REDUCE
public static MapReduceAction[] values()
for (MapReduceAction c : MapReduceAction.values()) System.out.println(c);
public static MapReduceAction valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public java.lang.String getValue()