关注 spark技术分享,
撸spark源码 玩spark最佳实践

CreatableRelationProvider Contract — Data Sources That Write Rows Per Save Mode

CreatableRelationProvider Contract — Data Sources That Write Rows Per Save Mode

Table 1. CreatableRelationProvider Contract
Method Description

createRelation

Saving the rows of a structured query (a DataFrame) to an external data source

createRelation saves the rows of a structured query (a DataFrame) to a target relation per save mode and parameters. In the end, createRelation creates a BaseRelation to represent the relation created.

The save mode specifies what happens when the destination already exists and can be one of the following:

  • Append

  • ErrorIfExists

  • Ignore

  • Overwrite

CreatableRelationProvider is used when:

Table 2. CreatableRelationProviders
CreatableRelationProvider Description

JdbcRelationProvider

Data source provider for JDBC data source

KafkaSourceProvider

Data source provider for Kafka data source

赞(0) 打赏
未经允许不得转载:spark技术分享 » CreatableRelationProvider Contract — Data Sources That Write Rows Per Save Mode
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏