public static enum BigQueryIO.Write.WriteDisposition extends java.lang.Enum<BigQueryIO.Write.WriteDisposition>
Enum Constant and Description |
---|
WRITE_APPEND
Specifies that rows may be appended to an existing table.
|
WRITE_EMPTY
Specifies that the output table must be empty.
|
WRITE_TRUNCATE
Specifies that write should replace a table.
|
Modifier and Type | Method and Description |
---|---|
static BigQueryIO.Write.WriteDisposition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BigQueryIO.Write.WriteDisposition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BigQueryIO.Write.WriteDisposition WRITE_TRUNCATE
The replacement may occur in multiple steps - for instance by first removing the existing table, then creating a replacement, then filling it in. This is not an atomic operation, and external programs may see the table in any of these intermediate steps.
Note: This write disposition is only supported for the FILE_LOADS write method.
public static final BigQueryIO.Write.WriteDisposition WRITE_APPEND
public static final BigQueryIO.Write.WriteDisposition WRITE_EMPTY
If the output table is not empty, the write fails at runtime.
This check may occur long before data is written, and does not guarantee exclusive
access to the table. If two programs are run concurrently, each specifying the same output
table and a BigQueryIO.Write.WriteDisposition
of WRITE_EMPTY
, it is
possible for both to succeed.
public static BigQueryIO.Write.WriteDisposition[] values()
for (BigQueryIO.Write.WriteDisposition c : BigQueryIO.Write.WriteDisposition.values()) System.out.println(c);
public static BigQueryIO.Write.WriteDisposition 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