Package org.apache.spark.sql.sources
Interface CreatableRelationProvider
public interface CreatableRelationProvider
- Since:
- 1.3.0
-
Method Summary
Modifier and TypeMethodDescriptioncreateRelation
(SQLContext sqlContext, SaveMode mode, scala.collection.immutable.Map<String, String> parameters, Dataset<Row> data) Saves a DataFrame to a destination (using data source-specific parameters)boolean
Check if the relation supports the given data type.
-
Method Details
-
createRelation
BaseRelation createRelation(SQLContext sqlContext, SaveMode mode, scala.collection.immutable.Map<String, String> parameters, Dataset<Row> data) Saves a DataFrame to a destination (using data source-specific parameters)- Parameters:
sqlContext
- SQLContextmode
- specifies what happens when the destination already existsparameters
- data source-specific parametersdata
- DataFrame to save (i.e. the rows after executing the query)- Returns:
- Relation with a known schema
- Since:
- 1.3.0
-
supportsDataType
Check if the relation supports the given data type.- Parameters:
dt
- Data type to check- Returns:
- True if the data type is supported
- Since:
- 4.0.0
-