Package org.apache.flink.table.api
Class InsertConflictStrategy.Builder
- java.lang.Object
-
- org.apache.flink.table.api.InsertConflictStrategy.Builder
-
- Enclosing class:
- InsertConflictStrategy
@PublicEvolving public static final class InsertConflictStrategy.Builder extends Object
Builder for creatingInsertConflictStrategyinstances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InsertConflictStrategybuild()Builds theInsertConflictStrategy.InsertConflictStrategy.BuilderwithBehavior(InsertConflictStrategy.ConflictBehavior behavior)Sets the conflict behavior for the strategy.
-
-
-
Method Detail
-
withBehavior
public InsertConflictStrategy.Builder withBehavior(InsertConflictStrategy.ConflictBehavior behavior)
Sets the conflict behavior for the strategy.- Parameters:
behavior- the conflict behavior to use- Returns:
- this builder
-
build
public InsertConflictStrategy build()
Builds theInsertConflictStrategy.- Returns:
- the configured InsertConflictStrategy
- Throws:
IllegalStateException- if behavior is not set
-
-