Package com.google.cloud.bigquery
Enum JobInfo.WriteDisposition
- java.lang.Object
-
- java.lang.Enum<JobInfo.WriteDisposition>
-
- com.google.cloud.bigquery.JobInfo.WriteDisposition
-
- All Implemented Interfaces:
Serializable
,Comparable<JobInfo.WriteDisposition>
- Enclosing class:
- JobInfo
public static enum JobInfo.WriteDisposition extends Enum<JobInfo.WriteDisposition>
Specifies the action that occurs if the destination table already exists.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description WRITE_APPEND
Configures the job to append data to the table if it already exists.WRITE_EMPTY
Configures the job to fail with a duplicate error if the table already exists.WRITE_TRUNCATE
Configures the job to overwrite the table data if table already exists.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JobInfo.WriteDisposition
valueOf(String name)
Returns the enum constant of this type with the specified name.static JobInfo.WriteDisposition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WRITE_TRUNCATE
public static final JobInfo.WriteDisposition WRITE_TRUNCATE
Configures the job to overwrite the table data if table already exists.
-
WRITE_APPEND
public static final JobInfo.WriteDisposition WRITE_APPEND
Configures the job to append data to the table if it already exists.
-
WRITE_EMPTY
public static final JobInfo.WriteDisposition WRITE_EMPTY
Configures the job to fail with a duplicate error if the table already exists.
-
-
Method Detail
-
values
public static JobInfo.WriteDisposition[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JobInfo.WriteDisposition c : JobInfo.WriteDisposition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JobInfo.WriteDisposition valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-