Enum ExecutionConfigOptions.SinkUpsertMaterializeStrategy
java.lang.Object
java.lang.Enum<ExecutionConfigOptions.SinkUpsertMaterializeStrategy>
org.apache.flink.table.api.config.ExecutionConfigOptions.SinkUpsertMaterializeStrategy
- All Implemented Interfaces:
Serializable,Comparable<ExecutionConfigOptions.SinkUpsertMaterializeStrategy>,java.lang.constant.Constable
- Enclosing class:
- ExecutionConfigOptions
@PublicEvolving
public static enum ExecutionConfigOptions.SinkUpsertMaterializeStrategy
extends Enum<ExecutionConfigOptions.SinkUpsertMaterializeStrategy>
SinkUpsertMaterializer strategy.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlternate between MAP and VALUE depending on the number of entries for the given key starting with VALUE and switching to MAP upon reaching threshold.high value (and back to VALUE, when reaching low).Simple implementation based onValueState<List>(the original implementation).OrderedMultiSetState-based implementation based on a combination of several MapState maintaining ordering and fast lookup properties.Similar to LEGACY, but compatible with MAP and therefore allows to switch to ADAPTIVE. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LEGACY
Simple implementation based onValueState<List>(the original implementation).- optimal for cases with history under approx. 100 elements
- limited TTL support (per key granularity, i.e. no expiration for old history elements)
-
MAP
OrderedMultiSetState-based implementation based on a combination of several MapState maintaining ordering and fast lookup properties.- faster and more memory-efficient on long histories
- slower on short histories
- currently, no TTL support (to be added in the future)
- requires more space
-
VALUE
Similar to LEGACY, but compatible with MAP and therefore allows to switch to ADAPTIVE. -
ADAPTIVE
Alternate between MAP and VALUE depending on the number of entries for the given key starting with VALUE and switching to MAP upon reaching threshold.high value (and back to VALUE, when reaching low).
-
-
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
-