@Evolving public interface SupportsOverwriteV2 extends WriteBuilder, SupportsTruncate
Overwriting data by filter will delete any data that matches the filter and replace it with data that is committed in the write.
Modifier and Type | Method and Description |
---|---|
default boolean |
canOverwrite(Predicate[] predicates)
Checks whether it is possible to overwrite data from a data source table that matches filter
expressions.
|
WriteBuilder |
overwrite(Predicate[] predicates)
Configures a write to replace data matching the filters with data committed in the write.
|
default WriteBuilder |
truncate()
Configures a write to replace all existing data with data committed in the write.
|
build, buildForBatch, buildForStreaming
default boolean canOverwrite(Predicate[] predicates)
Rows should be overwritten from the data source iff all of the filter expressions match. That is, the expressions must be interpreted as a set of filters that are ANDed together.
predicates
- V2 filter expressions, used to match data to overwriteWriteBuilder overwrite(Predicate[] predicates)
Rows must be deleted from the data source if and only if all of the filters match. That is, filters must be interpreted as ANDed together.
predicates
- filters used to match data to overwritedefault WriteBuilder truncate()
SupportsTruncate
truncate
in interface SupportsTruncate