SparkSession.
readStream
Returns a DataStreamReader that can be used to read data streams as a streaming DataFrame.
DataStreamReader
DataFrame
New in version 2.0.0.
Notes
This API is evolving.