createRelation(
sqlContext: SQLContext,
mode: SaveMode,
parameters: Map[String, String],
data: DataFrame): BaseRelation
CreatableRelationProvider Contract — Data Sources That Write Rows Differently Per Save Mode
CreatableRelationProvider
is the abstraction of data source providers that can write the rows of a structured query (a DataFrame) differently per save mode.
Method | Description |
---|---|
|
Creates a BaseRelation that represents the rows of a structured query (a DataFrame) saved to an external data source (per SaveMode) The save mode specifies what should happen when the target relation (destination) already exists. Used when:
|
CreatableRelationProvider | Description |
---|---|
Data source provider for Console data source |
|
Data source provider for JDBC data source |
|
Data source provider for Kafka data source |