public class JSONRelation extends BaseRelation implements TableScan, InsertableRelation, scala.Product, scala.Serializable
Constructor and Description |
---|
JSONRelation(String path,
double samplingRatio,
scala.Option<StructType> userSpecifiedSchema,
SQLContext sqlContext) |
Modifier and Type | Method and Description |
---|---|
RDD<Row> |
buildScan() |
boolean |
equals(Object other) |
int |
hashCode() |
void |
insert(DataFrame data,
boolean overwrite) |
String |
path() |
double |
samplingRatio() |
StructType |
schema() |
SQLContext |
sqlContext() |
scala.Option<StructType> |
userSpecifiedSchema() |
sizeInBytes
public JSONRelation(String path, double samplingRatio, scala.Option<StructType> userSpecifiedSchema, SQLContext sqlContext)
public String path()
public double samplingRatio()
public scala.Option<StructType> userSpecifiedSchema()
public SQLContext sqlContext()
sqlContext
in class BaseRelation
public StructType schema()
schema
in class BaseRelation
public void insert(DataFrame data, boolean overwrite)
insert
in interface InsertableRelation
public int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in interface scala.Equals
equals
in class Object