Enum Merge

  • All Implemented Interfaces:
    Serializable, Comparable<Merge>

    public enum Merge
    extends Enum<Merge>
    Merge options relevant to upsert-like steps mergeV() and mergeE() that are applied to the relevant option() modulator.
    • 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 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 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 name
        NullPointerException - if the argument is null