public class DefaultSource extends Object implements RelationProvider, SchemaRelationProvider, CreatableRelationProvider
Constructor and Description |
---|
DefaultSource() |
Modifier and Type | Method and Description |
---|---|
BaseRelation |
createRelation(SQLContext sqlContext,
scala.collection.immutable.Map<String,String> parameters)
Returns a new base relation with the parameters.
|
BaseRelation |
createRelation(SQLContext sqlContext,
scala.collection.immutable.Map<String,String> parameters,
org.apache.spark.sql.types.StructType schema)
Returns a new base relation with the given schema and parameters.
|
BaseRelation |
createRelation(SQLContext sqlContext,
SaveMode mode,
scala.collection.immutable.Map<String,String> parameters,
DataFrame data)
Creates a relation with the given parameters based on the contents of the given
DataFrame.
|
public BaseRelation createRelation(SQLContext sqlContext, scala.collection.immutable.Map<String,String> parameters)
createRelation
in interface RelationProvider
public BaseRelation createRelation(SQLContext sqlContext, scala.collection.immutable.Map<String,String> parameters, org.apache.spark.sql.types.StructType schema)
createRelation
in interface SchemaRelationProvider
public BaseRelation createRelation(SQLContext sqlContext, SaveMode mode, scala.collection.immutable.Map<String,String> parameters, DataFrame data)
CreatableRelationProvider
createRelation
in interface CreatableRelationProvider