Interface CreatableRelationProvider


public interface CreatableRelationProvider
Since:
1.3.0
  • 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 - 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
    • supportsDataType

      boolean supportsDataType(DataType dt)
      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