DataStreamReader.
orc
Loads a ORC file stream, returning the result as a DataFrame.
DataFrame
New in version 2.3.0.
For the extra options, refer to Data Source Option in the version you use.
Examples
>>> orc_sdf = spark.readStream.schema(sdf_schema).orc(tempfile.mkdtemp()) >>> orc_sdf.isStreaming True >>> orc_sdf.schema == sdf_schema True