public static enum BigQueryIO.Write.CreateDisposition extends java.lang.Enum<BigQueryIO.Write.CreateDisposition>
Enum Constant and Description |
---|
CREATE_IF_NEEDED
Specifies that tables should be created if needed.
|
CREATE_NEVER
Specifics that tables should not be created.
|
Modifier and Type | Method and Description |
---|---|
static BigQueryIO.Write.CreateDisposition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BigQueryIO.Write.CreateDisposition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BigQueryIO.Write.CreateDisposition CREATE_NEVER
If the output table does not exist, the write fails.
public static final BigQueryIO.Write.CreateDisposition CREATE_IF_NEEDED
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
.
public static BigQueryIO.Write.CreateDisposition[] values()
for (BigQueryIO.Write.CreateDisposition c : BigQueryIO.Write.CreateDisposition.values()) System.out.println(c);
public static BigQueryIO.Write.CreateDisposition valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null