pyspark.sql.datasource.DataSource.reader#
- DataSource.reader(schema)[source]#
Returns a
DataSourceReader
instance for reading data.The implementation is required for readable data sources.
- Parameters
- schema
StructType
The schema of the data to be read.
- schema
- Returns
- reader
DataSourceReader
A reader instance for this data source.
- reader