pyspark.sql.datasource.DataSource.streamReader#
- DataSource.streamReader(schema)[source]#
Returns a
DataSourceStreamReader
instance for reading streaming data.One of simpleStreamReader() and streamReader() must be implemented for readable streaming data source.
- Parameters
- schema
StructType
The schema of the data to be read.
- schema
- Returns
- reader
DataSourceStreamReader
A reader instance for this streaming data source.
- reader