Skip to contents

Returns TRUE if this SparkDataFrame contains one or more sources that continuously return data as it arrives. A dataset that reads data from a streaming source must be executed as a StreamingQuery using write.stream.

Usage

isStreaming(x)

# S4 method for SparkDataFrame
isStreaming(x)

Arguments

x

A SparkDataFrame

Value

TRUE if this SparkDataFrame is from a streaming source

Note

isStreaming since 2.2.0

experimental

Examples

if (FALSE) {
sparkR.session()
df <- read.stream("socket", host = "localhost", port = 9999)
isStreaming(df)
}