Enum JobInfo.WriteDisposition

java.lang.Object
java.lang.Enum<JobInfo.WriteDisposition>
com.google.cloud.bigquery.JobInfo.WriteDisposition
All Implemented Interfaces:
Serializable, Comparable<JobInfo.WriteDisposition>
Enclosing class:
JobInfo

public static enum JobInfo.WriteDisposition extends Enum<JobInfo.WriteDisposition>
Specifies the action that occurs if the destination table already exists.
  • Enum Constant Details

    • WRITE_TRUNCATE

      public static final JobInfo.WriteDisposition WRITE_TRUNCATE
      Configures the job to overwrite the table data if table already exists.
    • WRITE_APPEND

      public static final JobInfo.WriteDisposition WRITE_APPEND
      Configures the job to append data to the table if it already exists.
    • WRITE_EMPTY

      public static final JobInfo.WriteDisposition WRITE_EMPTY
      Configures the job to fail with a duplicate error if the table already exists.
  • Method Details

    • values

      public static JobInfo.WriteDisposition[] 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 JobInfo.WriteDisposition 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