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
schemaStructType

The schema of the data to be read.

Returns
readerDataSourceReader

A reader instance for this data source.