pyspark.sql.streaming.DataStreamReader.option

DataStreamReader.option(key: str, value: OptionalPrimitiveType) → DataStreamReader

Adds an input option for the underlying data source.

Notes

This API is evolving.

Examples

>>> s = spark.readStream.option("x", 1)