public static enum MergeOptions.WhenMatched extends java.lang.Enum<MergeOptions.WhenMatched>
Enum Constant and Description |
---|
FAIL
Stop and fail the aggregation operation.
|
KEEP_EXISTING
Keep the existing document in the output collection.
|
MERGE
Merge the matching documents
|
PIPELINE
An aggregation pipeline to update the document in the collection.
|
REPLACE
Replace the existing document in the output collection with the matching results document.
|
Modifier and Type | Method and Description |
---|---|
static MergeOptions.WhenMatched |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MergeOptions.WhenMatched[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MergeOptions.WhenMatched REPLACE
public static final MergeOptions.WhenMatched KEEP_EXISTING
public static final MergeOptions.WhenMatched MERGE
public static final MergeOptions.WhenMatched PIPELINE
MergeOptions.whenMatchedPipeline(List)
public static final MergeOptions.WhenMatched FAIL
public static MergeOptions.WhenMatched[] values()
for (MergeOptions.WhenMatched c : MergeOptions.WhenMatched.values()) System.out.println(c);
public static MergeOptions.WhenMatched valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2010 - 2023 Adobe. All Rights Reserved