Enum CreateDisposition

java.lang.Object
java.lang.Enum<CreateDisposition>
io.github.flink.gcp.connector.bigquery.sink.CreateDisposition
All Implemented Interfaces:
Serializable, Comparable<CreateDisposition>, java.lang.constant.Constable

@Public public enum CreateDisposition extends Enum<CreateDisposition>
Whether the sink may create destination tables that do not exist.
  • Enum Constant Details

    • CREATE_IF_NEEDED

      public static final CreateDisposition CREATE_IF_NEEDED
      Create the destination table when it does not exist, deriving the table schema from the record's protobuf descriptor.
    • CREATE_NEVER

      public static final CreateDisposition CREATE_NEVER
      Never create destination tables; writing to a missing table fails.
  • Method Details

    • values

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

      public static CreateDisposition 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
    • toString

      public String toString()
      Returns the hyphenated lower-case spelling this constant takes in a sink.create-disposition DDL option, for example create-if-needed.

      Flink resolves an enum-valued ConfigOption by matching this string case-insensitively and normalizing nothing else. Use Enum.name() where a message means the Java constant.

      Overrides:
      toString in class Enum<CreateDisposition>