Enum Class AbstractWriteRel.WriteOp

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

public static enum AbstractWriteRel.WriteOp extends Enum<AbstractWriteRel.WriteOp>
Logical write operation kinds.
  • Enum Constant Details

  • Method Details

    • values

      public static AbstractWriteRel.WriteOp[] 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.WriteOp 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.WriteOp toProto()
      Converts this enum to its protobuf counterpart.
      Returns:
      protobuf enum value
    • fromProto

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