pyspark.sql.DataFrame.isStreaming¶
-
property
DataFrame.
isStreaming
¶ Returns
True
if thisDataFrame
contains one or more sources that continuously return data as it arrives. ADataFrame
that reads data from a streaming source must be executed as aStreamingQuery
using thestart()
method inDataStreamWriter
. Methods that return a single answer, (e.g.,count()
orcollect()
) will throw anAnalysisException
when there is a streaming source present.Notes
This API is evolving.