DataSourceV2
DataSourceV2 is the contract of Data Sources V2 that FIXME.
DataSourceV2 defines no methods or values and acts as a marker interface.
|
1 2 3 4 5 6 7 |
package org.apache.spark.sql.sources.v2; public interface DataSourceV2 {} |
|
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
|
In other words, using the contract is as treading on thin ice. |
| DataSourceV2 | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spark技术分享