Enum Class BigQueryIO.Write.SchemaUpdateOption

java.lang.Object
java.lang.Enum<BigQueryIO.Write.SchemaUpdateOption>
org.apache.beam.sdk.io.gcp.bigquery.BigQueryIO.Write.SchemaUpdateOption
All Implemented Interfaces:
Serializable, Comparable<BigQueryIO.Write.SchemaUpdateOption>, Constable
Enclosing class:
BigQueryIO.Write<T>

public static enum BigQueryIO.Write.SchemaUpdateOption extends Enum<BigQueryIO.Write.SchemaUpdateOption>
An enumeration type for the BigQuery schema update options strings.

Not supported for BigQueryIO.Write.Method.STREAMING_INSERTS.

Note from the BigQuery API doc -- Schema update options are supported in two cases: when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition of a table, specified by partition decorators. When updating a pipeline with a new schema, the existing schmea fields must stay in the same order, or the pipeline will break.

See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static BigQueryIO.Write.SchemaUpdateOption[] 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 BigQueryIO.Write.SchemaUpdateOption 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