CreatableRelationProvider Contract — Data Sources That Write Rows Differently Per Save Mode

Table 1. CreatableRelationProvider Contract
Method Description

createRelation

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:

Table 2. CreatableRelationProviders
CreatableRelationProvider Description

ConsoleSinkProvider

Data source provider for Console data source

JdbcRelationProvider

Data source provider for JDBC data source

KafkaSourceProvider

Data source provider for Kafka data source

results matching ""

    No results matching ""