public class JSONRelation extends TableScan implements scala.Product, scala.Serializable
Constructor and Description |
---|
JSONRelation(String fileName,
double samplingRatio,
SQLContext sqlContext) |
Modifier and Type | Method and Description |
---|---|
RDD<org.apache.spark.sql.catalyst.expressions.Row> |
buildScan() |
String |
fileName() |
double |
samplingRatio() |
org.apache.spark.sql.catalyst.types.StructType |
schema() |
SQLContext |
sqlContext() |
sizeInBytes
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public JSONRelation(String fileName, double samplingRatio, SQLContext sqlContext)
public String fileName()
public double samplingRatio()
public SQLContext sqlContext()
sqlContext
in class BaseRelation
public org.apache.spark.sql.catalyst.types.StructType schema()
schema
in class BaseRelation