java.lang.Object
java.lang.Enum<Merge>
org.apache.tinkerpop.gremlin.process.traversal.Merge
All Implemented Interfaces:
Serializable, Comparable<Merge>, Constable

public enum Merge extends Enum<Merge>
Merge options relevant to upsert-like steps mergeV() and mergeE() that are applied to the relevant option() modulator.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Allows for more complex definition of the IN vertex.
    Allows definition of the action to take when a merge operation ends up not matching the search criteria.
    Allows definition of the action to take when a merge operation ends up successfully matching the search criteria.
    Allows for more complex definition of the OUT vertex.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Merge
    Returns the enum constant of this class with the specified name.
    static Merge[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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 an Element 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 matched Element 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 Details

    • values

      public static Merge[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Merge valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null