Enum Merge
- java.lang.Object
- 
- java.lang.Enum<Merge>
- 
- org.apache.tinkerpop.gremlin.process.traversal.Merge
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<Merge>
 
 public enum Merge extends Enum<Merge> Merge options relevant to upsert-like stepsmergeV()andmergeE()that are applied to the relevantoption()modulator.
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description inVAllows for more complex definition of the IN vertex.onCreateAllows definition of the action to take when a merge operation ends up not matching the search criteria.onMatchAllows definition of the action to take when a merge operation ends up successfully matching the search criteria.outVAllows for more complex definition of the OUT vertex.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static MergevalueOf(String name)Returns the enum constant of this type with the specified name.static Merge[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
onCreatepublic static final Merge onCreate Allows definition of the action to take when a merge operation ends up not matching the search criteria. Typically, this event means that anElementwill be created.- Since:
- 3.6.0
 
 - 
onMatchpublic static final Merge onMatch Allows definition of the action to take when a merge operation ends up successfully matching the search criteria. Typically, this event means that the matchedElementwill be returned.- Since:
- 3.6.0
 
 - 
outVpublic static final Merge outV Allows for more complex definition of the OUT vertex.- Since:
- 3.6.2
 
 - 
inVpublic static final Merge inV Allows for more complex definition of the IN vertex.- Since:
- 3.6.2
 
 
- 
 - 
Method Detail- 
valuespublic static Merge[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Merge c : Merge.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static Merge valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
- 
 
-