org.apache.spark.sql
:: Experimental :: A trigger that runs a query periodically based on the processing time. If interval is 0, the query will run as fast as possible.
interval
Scala Example:
df.write.trigger(ProcessingTime("10 seconds")) import scala.concurrent.duration._ df.write.trigger(ProcessingTime(10.seconds))
Java Example:
df.write.trigger(ProcessingTime.create("10 seconds")) import java.util.concurrent.TimeUnit df.write.trigger(ProcessingTime.create(10, TimeUnit.SECONDS))
:: Experimental :: A trigger that runs a query periodically based on the processing time. If
interval
is 0, the query will run as fast as possible.Scala Example:
Java Example: