Enum Class AbstractWriteRel.CreateMode

java.lang.Object
java.lang.Enum<AbstractWriteRel.CreateMode>
io.substrait.relation.AbstractWriteRel.CreateMode
All Implemented Interfaces:
Serializable, Comparable<AbstractWriteRel.CreateMode>, Constable
Enclosing class:
AbstractWriteRel

public static enum AbstractWriteRel.CreateMode extends Enum<AbstractWriteRel.CreateMode>
Behavior when the target table already exists.
  • Enum Constant Details

  • Method Details

    • values

      public static AbstractWriteRel.CreateMode[] 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 AbstractWriteRel.CreateMode 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
    • toProto

      public WriteRel.CreateMode toProto()
      Converts this enum to its protobuf counterpart.
      Returns:
      protobuf enum value
    • fromProto

      public static AbstractWriteRel.CreateMode fromProto(WriteRel.CreateMode proto)
      Maps a protobuf value to this enum.
      Parameters:
      proto - protobuf enum value
      Returns:
      matching CreateMode
      Throws:
      IllegalArgumentException - if unknown