Package org.apache.flink.table.api
Class InsertConflictStrategy.Builder
java.lang.Object
org.apache.flink.table.api.InsertConflictStrategy.Builder
- Enclosing class:
- InsertConflictStrategy
Builder for creating
InsertConflictStrategy instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theInsertConflictStrategy.Sets the conflict behavior for the strategy.
-
Method Details
-
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
Builds theInsertConflictStrategy.- Returns:
- the configured InsertConflictStrategy
- Throws:
IllegalStateException- if behavior is not set
-