public class DeltaMergeMatchedActionBuilder
extends Object
Builder class to specify the actions to perform when a target table row has matched a source row based on the given merge condition and optional match condition.
See DeltaMergeBuilder
for more information.
Constructor and Description |
---|
DeltaMergeMatchedActionBuilder() |
Modifier and Type | Method and Description |
---|---|
DeltaMergeBuilder |
delete()
:: Evolving ::
|
DeltaMergeBuilder |
update(scala.collection.Map<String,org.apache.spark.sql.Column> set)
:: Evolving ::
|
DeltaMergeBuilder |
update(java.util.Map<String,org.apache.spark.sql.Column> set)
:: Evolving ::
|
DeltaMergeBuilder |
updateAll()
:: Evolving ::
|
DeltaMergeBuilder |
updateExpr(scala.collection.Map<String,String> set)
:: Evolving ::
|
DeltaMergeBuilder |
updateExpr(java.util.Map<String,String> set)
:: Evolving ::
|
public DeltaMergeBuilder update(scala.collection.Map<String,org.apache.spark.sql.Column> set)
Update the matched table rows based on the rules defined by set
.
set
- rules to update a row as a Scala map between target column names and
corresponding update expressions as Column objects.public DeltaMergeBuilder updateExpr(scala.collection.Map<String,String> set)
Update the matched table rows based on the rules defined by set
.
set
- rules to update a row as a Scala map between target column names and
corresponding update expressions as SQL formatted strings.public DeltaMergeBuilder update(java.util.Map<String,org.apache.spark.sql.Column> set)
Update a matched table row based on the rules defined by set
.
set
- rules to update a row as a Java map between target column names and
corresponding expressions as Column objects.public DeltaMergeBuilder updateExpr(java.util.Map<String,String> set)
Update a matched table row based on the rules defined by set
.
set
- rules to update a row as a Java map between target column names and
corresponding expressions as SQL formatted strings.public DeltaMergeBuilder updateAll()
Update all the columns of the matched table row with the values of the corresponding columns in the source row.
public DeltaMergeBuilder delete()
Delete a matched row from the table.