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

DataSourceV2

DataSourceV2

DataSourceV2 is the contract of Data Sources V2 that FIXME.

DataSourceV2 defines no methods or values and acts as a marker interface.

Note
Implementations should mix-in at least one of the interfaces like ReadSupport and WriteSupport. Otherwise it’s simply a dummy data source which is un-readable and un-writable.
Note

DataSourceV2 is an Evolving contract that is evolving towards becoming a stable API, but is not a stable API yet and can change from one feature release to another release.

In other words, using the contract is as treading on thin ice.

Table 1. DataSourceV2s
DataSourceV2 Description

ConsoleSinkProvider

Used in Spark Structured Streaming

ContinuousReadSupport

Used in Spark Structured Streaming

MemorySinkV2

Used in Spark Structured Streaming

MicroBatchReadSupport

Used in Spark Structured Streaming

RateSourceProvider

Used in Spark Structured Streaming

RateSourceProviderV2

Used in Spark Structured Streaming

ReadSupport

ReadSupportWithSchema

SessionConfigSupport

StreamWriteSupport

WriteSupport

赞(0) 打赏
未经允许不得转载:spark技术分享 » DataSourceV2
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

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

支付宝扫一扫打赏

微信扫一扫打赏