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() |
sizeInBytesequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic JSONRelation(String fileName,
double samplingRatio,
SQLContext sqlContext)
public String fileName()
public double samplingRatio()
public SQLContext sqlContext()
sqlContext in class BaseRelationpublic org.apache.spark.sql.catalyst.types.StructType schema()
schema in class BaseRelation