public class ProcessingTime extends Trigger implements scala.Product, scala.Serializable
interval
is 0,
the query will run as fast as possible.
Scala Example:
df.writeStream.trigger(ProcessingTime("10 seconds"))
import scala.concurrent.duration._
df.writeStream.trigger(ProcessingTime(10.seconds))
Java Example:
df.writeStream.trigger(ProcessingTime.create("10 seconds"))
import java.util.concurrent.TimeUnit
df.writeStream.trigger(ProcessingTime.create(10, TimeUnit.SECONDS))
Constructor and Description |
---|
ProcessingTime(long intervalMs)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ProcessingTime |
apply(scala.concurrent.duration.Duration interval)
Deprecated.
use Trigger.ProcessingTime(interval)
|
static ProcessingTime |
apply(String interval)
Deprecated.
use Trigger.ProcessingTime(interval)
|
static ProcessingTime |
create(long interval,
java.util.concurrent.TimeUnit unit)
Deprecated.
use Trigger.ProcessingTime(interval, unit)
|
static ProcessingTime |
create(String interval)
Deprecated.
use Trigger.ProcessingTime(interval)
|
long |
intervalMs()
Deprecated.
|
Continuous, Continuous, Continuous, Continuous, Once, ProcessingTime, ProcessingTime, ProcessingTime, ProcessingTime
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static ProcessingTime apply(String interval)
ProcessingTime
. If interval
is 0, the query will run as fast as possible.
Example:
df.writeStream.trigger(ProcessingTime("10 seconds"))
interval
- (undocumented)public static ProcessingTime apply(scala.concurrent.duration.Duration interval)
ProcessingTime
. If interval
is 0, the query will run as fast as possible.
Example:
import scala.concurrent.duration._
df.writeStream.trigger(ProcessingTime(10.seconds))
interval
- (undocumented)public static ProcessingTime create(String interval)
ProcessingTime
. If interval
is 0, the query will run as fast as possible.
Example:
df.writeStream.trigger(ProcessingTime.create("10 seconds"))
interval
- (undocumented)public static ProcessingTime create(long interval, java.util.concurrent.TimeUnit unit)
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))
interval
- (undocumented)unit
- (undocumented)public long intervalMs()