org.apache.spark.sql.streaming
Create a ProcessingTime.
Create a ProcessingTime. If interval
is 0, the query will run as fast as possible.
Example:
import scala.concurrent.duration._ df.writeStream.trigger(ProcessingTime(10.seconds))
(Since version 2.2.0) use Trigger.ProcessingTime(interval)
2.0.0
Create a ProcessingTime.
Create a ProcessingTime. If interval
is 0, the query will run as fast as possible.
Example:
df.writeStream.trigger(ProcessingTime("10 seconds"))
(Since version 2.2.0) use Trigger.ProcessingTime(interval)
2.0.0
Create a ProcessingTime.
Create a ProcessingTime. If interval
is 0, the query will run as fast as possible.
Example:
import java.util.concurrent.TimeUnit df.writeStream.trigger(ProcessingTime.create(10, TimeUnit.SECONDS))
(Since version 2.2.0) use Trigger.ProcessingTime(interval, unit)
2.0.0
Create a ProcessingTime.
Create a ProcessingTime. If interval
is 0, the query will run as fast as possible.
Example:
df.writeStream.trigger(ProcessingTime.create("10 seconds"))
(Since version 2.2.0) use Trigger.ProcessingTime(interval)
2.0.0
Used to create ProcessingTime triggers for StreamingQuerys.
(Since version 2.2.0) use Trigger.ProcessingTime(intervalMs)
2.0.0