Enum CreateDisposition
- All Implemented Interfaces:
Serializable,Comparable<CreateDisposition>,java.lang.constant.Constable
Whether the sink may create the destination table when it does not exist.
Unlike the Pub/Sub sink's disposition, CREATE_IF_NEEDED cannot stand alone: a
Bigtable table's schema is its column families and their garbage-collection policies, which the
sink cannot guess, so the disposition requires BigtableSinkBuilder.tableCreateOptions(TableCreateOptions) naming at least one family.
toString() returns the hyphenated spelling rather than the constant name, because
that spelling is what a SQL WITH clause is written in: Flink resolves an enum
ConfigOption by matching the configured value against toString(), case-insensitively and
with no other normalization. Flink's own DeliveryGuarantee carries its option spelling
the same way.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCreate the destination table — or the column families it is missing — fromTableCreateOptionswhen a mutation finds them absent.Never create the table or a column family; writing to a missing one fails. -
Method Summary
Modifier and TypeMethodDescriptiontoString()static CreateDispositionReturns the enum constant of this type with the specified name.static CreateDisposition[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CREATE_IF_NEEDED
Create the destination table — or the column families it is missing — fromTableCreateOptionswhen a mutation finds them absent. -
CREATE_NEVER
Never create the table or a column family; writing to a missing one fails.
-
-
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
- Overrides:
toStringin classEnum<CreateDisposition>
-