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 Summary
Enum Constants Enum Constant Description inV
Allows for more complex definition of the IN vertex.onCreate
Allows definition of the action to take when a merge operation ends up not matching the search criteria.onMatch
Allows definition of the action to take when a merge operation ends up successfully matching the search criteria.outV
Allows for more complex definition of the OUT vertex.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Merge
valueOf(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
-
onCreate
public 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 anElement
will be created.- Since:
- 3.6.0
-
onMatch
public 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 matchedElement
will be returned.- Since:
- 3.6.0
-
outV
public static final Merge outV
Allows for more complex definition of the OUT vertex.- Since:
- 3.6.2
-
inV
public static final Merge inV
Allows for more complex definition of the IN vertex.- Since:
- 3.6.2
-
-
Method Detail
-
values
public 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
-
valueOf
public 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 nameNullPointerException
- if the argument is null
-
-