Class DeltaMergeNotMatchedActionBuilder

Object
io.delta.tables.DeltaMergeNotMatchedActionBuilder

public class DeltaMergeNotMatchedActionBuilder extends Object
Builder class to specify the actions to perform when a source row has not matched any target Delta table row based on the merge condition, but has matched the additional condition if specified.

See DeltaMergeBuilder for more information.

Since:
0.3.0
  • Constructor Details

    • DeltaMergeNotMatchedActionBuilder

      public DeltaMergeNotMatchedActionBuilder()
  • Method Details

    • insert

      public DeltaMergeBuilder insert(scala.collection.Map<String,org.apache.spark.sql.Column> values)
      Insert a new row to the target table based on the rules defined by values.

      Parameters:
      values - rules to insert a row as a Scala map between target column names and corresponding expressions as Column objects.
      Returns:
      (undocumented)
      Since:
      0.3.0
    • insertExpr

      public DeltaMergeBuilder insertExpr(scala.collection.Map<String,String> values)
      Insert a new row to the target table based on the rules defined by values.

      Parameters:
      values - rules to insert a row as a Scala map between target column names and corresponding expressions as SQL formatted strings.
      Returns:
      (undocumented)
      Since:
      0.3.0
    • insert

      public DeltaMergeBuilder insert(Map<String,org.apache.spark.sql.Column> values)
      Insert a new row to the target table based on the rules defined by values.

      Parameters:
      values - rules to insert a row as a Java map between target column names and corresponding expressions as Column objects.
      Returns:
      (undocumented)
      Since:
      0.3.0
    • insertExpr

      public DeltaMergeBuilder insertExpr(Map<String,String> values)
      Insert a new row to the target table based on the rules defined by values.

      Parameters:
      values - rules to insert a row as a Java map between target column names and corresponding expressions as SQL formatted strings.

      Returns:
      (undocumented)
      Since:
      0.3.0
    • insertAll

      public DeltaMergeBuilder insertAll()
      Insert a new target Delta table row by assigning the target columns to the values of the corresponding columns in the source row.
      Returns:
      (undocumented)
      Since:
      0.3.0