InsertableRelation Contract — Non-File-Based Relations with Inserting or Overwriting Data Support
InsertableRelation
is the contract of non-file-based BaseRelations that support inserting or overwriting data.
1 2 3 4 5 6 7 8 9 |
package org.apache.spark.sql.sources trait InsertableRelation { def insert(data: DataFrame, overwrite: Boolean): Unit } |
Property | Description |
---|---|
|
Inserts or overwrites data (as DataFrame) in a relation Used exclusively when |
Note
|
JDBCRelation is the one and only known direct implementation of InsertableRelation Contract in Spark SQL. |