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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllow adding a nullable field to the schema.Allow relaxing a required field in the original schema to nullable. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static BigQueryIO.Write.SchemaUpdateOption[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALLOW_FIELD_ADDITION
Allow adding a nullable field to the schema. -
ALLOW_FIELD_RELAXATION
Allow relaxing a required field in the original schema to nullable.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-