Skip to content

CreatableRelationProvider

CreatableRelationProvider is the <> of <> that can <>.

[[contract]] .CreatableRelationProvider Contract [cols="30m,70",options="header",width="100%"] |=== | Method | Description

| createRelation a| [[createRelation]]

[source, scala]

createRelation( sqlContext: SQLContext, mode: SaveMode, parameters: Map[String, String], data: DataFrame): BaseRelation


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 CreateDataSourceTableAsSelectCommand and SaveIntoDataSourceCommand logical commands are executed

[[implementations]] .CreatableRelationProviders [cols="30,70",options="header",width="100%"] |=== | CreatableRelationProvider | Description

| ConsoleSinkProvider | [[ConsoleSinkProvider]] Data source provider for <>

| JdbcRelationProvider | [[JdbcRelationProvider]] Data source provider for JDBC data source

| KafkaSourceProvider | [[KafkaSourceProvider]] Data source provider for Kafka data source

|===


Last update: 2020-11-13