Enum WriteDisposition
- All Implemented Interfaces:
Serializable,Comparable<WriteDisposition>,java.lang.constant.Constable
How data lands in a destination table that already contains data. Mirrors the BigQuery load-job
write dispositions; only
WriteMethod.FILE_LOADS consults it (the Storage Write API methods always append).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAppends loaded rows to the existing table data.Fails the load when the destination table is not empty.Replaces the existing table data (and schema) with the loaded rows.Replaces the existing table data while preserving the table schema and constraints. -
Method Summary
Modifier and TypeMethodDescriptiontoString()Returns the hyphenated lower-case spelling this constant takes in asink.file-loads.write-dispositionDDL option, for examplewrite-truncate.static WriteDispositionReturns the enum constant of this type with the specified name.static WriteDisposition[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
WRITE_APPEND
Appends loaded rows to the existing table data. The default. -
WRITE_TRUNCATE
Replaces the existing table data (and schema) with the loaded rows. -
WRITE_TRUNCATE_DATA
Replaces the existing table data while preserving the table schema and constraints. -
WRITE_EMPTY
Fails the load when the destination table is not empty.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
toString
Returns the hyphenated lower-case spelling this constant takes in asink.file-loads.write-dispositionDDL option, for examplewrite-truncate.Flink resolves an enum-valued
ConfigOptionby matching this string case-insensitively and normalizing nothing else, so the DDL vocabulary is defined here rather than by a table-local copy of the enum. UseEnum.name()where a message means the Java constant.- Overrides:
toStringin classEnum<WriteDisposition>
-