pyspark.sql.streaming.DataStreamReader.options

DataStreamReader.options(**options: OptionalPrimitiveType) → DataStreamReader[source]

Adds input options for the underlying data source.

New in version 2.0.0.

Notes

This API is evolving.

Examples

>>> s = spark.readStream.options(x="1", y=2)