package org.apache.spark.sql.sources
abstract class BaseRelation {
// only required methods that have no implementation
def schema: StructType
def sqlContext: SQLContext
}
BaseRelation — Collection of Tuples with Schema
Note
|
A "data source" and "relation" and "table" are often used as synonyms. |
BaseRelation
can optionally provide information about its estimated size in bytes (as sizeInBytes
) that defaults to spark.sql.defaultSizeInBytes internal property (i.e. infinite).
BaseRelation
whether it needs a conversion.
BaseRelation
computes the list of Filter
that this data source may not be able to handle.
BaseRelation | Description |
---|---|
|
Structured Streaming’s |
Note
|
BaseRelation is "created" using DataSource 's resolveRelation.
|
Note
|
BaseRelation is transformed into a DataFrame using SparkSession 's baseRelationToDataFrame.
|