DataStreamReader.
format
Specifies the input data source format.
New in version 2.0.0.
name of the data source, e.g. ‘json’, ‘parquet’.
Notes
This API is evolving.
Examples
>>> s = spark.readStream.format("text")