CreatableRelationProvider¶
CreatableRelationProvider
is an abstraction of data source providers that can save data and create a BaseRelation.
Contract¶
createRelation¶
createRelation(
sqlContext: SQLContext,
mode: SaveMode,
parameters: Map[String, String],
data: DataFrame): BaseRelation
Saves the given DataFrame
to this data source (and creates a BaseRelation to represent the relation)
The SaveMode
specifies what should happen when the target relation (destination) already exists.
Used when:
DataSource
is requested to writeAndReadSaveIntoDataSourceCommand
logical command is requested to run
Implementations¶
ConsoleSinkProvider
- JdbcRelationProvider
- KafkaSourceProvider