Enum Class BigQueryIO.Write.CreateDisposition
java.lang.Object
java.lang.Enum<BigQueryIO.Write.CreateDisposition>
org.apache.beam.sdk.io.gcp.bigquery.BigQueryIO.Write.CreateDisposition
- All Implemented Interfaces:
Serializable
,Comparable<BigQueryIO.Write.CreateDisposition>
,Constable
- Enclosing class:
BigQueryIO.Write<T>
public static enum BigQueryIO.Write.CreateDisposition
extends Enum<BigQueryIO.Write.CreateDisposition>
An enumeration type for the BigQuery create disposition strings.
- 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 ConstantDescriptionSpecifies that tables should be created if needed.Specifics that tables should not be created. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static BigQueryIO.Write.CreateDisposition[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATE_NEVER
Specifics that tables should not be created.If the output table does not exist, the write fails.
-
CREATE_IF_NEEDED
Specifies that tables should be created if needed. This is the default behavior.Requires that a table schema is provided via
BigQueryIO.Write.withSchema(com.google.api.services.bigquery.model.TableSchema)
. This precondition is checked before starting a job. The schema is not required to match an existing table's schema.When this transformation is executed, if the output table does not exist, the table is created from the provided schema. Note that even if the table exists, it may be recreated if necessary when paired with a
BigQueryIO.Write.WriteDisposition.WRITE_TRUNCATE
.
-
-
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
-