Package org.apache.spark.sql.sources
Interface CreatableRelationProvider
public interface CreatableRelationProvider
- Since:
- 1.3.0
- 
Method SummaryModifier 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)booleanCheck if the relation supports the given data type.
- 
Method Details- 
createRelationBaseRelation 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- SQLContext
- mode- specifies what happens when the destination already exists
- parameters- data source-specific parameters
- data- DataFrame to save (i.e. the rows after executing the query)
- Returns:
- Relation with a known schema
- Since:
- 1.3.0
 
- 
supportsDataTypeCheck 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
 
 
-