DataStreamReader.
format
Specifies the input data source format.
Note
Evolving.
source – string, name of the data source, e.g. ‘json’, ‘parquet’.
>>> s = spark.readStream.format("text")
New in version 2.0.