public class ProcessingTime extends java.lang.Object implements Trigger, scala.Product, scala.Serializable
interval
is 0,
the query will run as fast as possible.
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))
Constructor and Description |
---|
ProcessingTime(long intervalMs) |
Modifier and Type | Method and Description |
---|---|
static ProcessingTime |
apply(scala.concurrent.duration.Duration interval)
Create a
ProcessingTime . |
static ProcessingTime |
apply(java.lang.String interval)
Create a
ProcessingTime . |
abstract static boolean |
canEqual(java.lang.Object that) |
static ProcessingTime |
create(long interval,
java.util.concurrent.TimeUnit unit)
Create a
ProcessingTime . |
static ProcessingTime |
create(java.lang.String interval)
Create a
ProcessingTime . |
abstract static boolean |
equals(java.lang.Object that) |
long |
intervalMs() |
abstract static int |
productArity() |
abstract static java.lang.Object |
productElement(int n) |
static scala.collection.Iterator<java.lang.Object> |
productIterator() |
static java.lang.String |
productPrefix() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static ProcessingTime apply(java.lang.String interval)
ProcessingTime
. If interval
is 0, the query will run as fast as possible.
Example:
df.write.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.write.trigger(ProcessingTime(10.seconds))
interval
- (undocumented)public static ProcessingTime create(java.lang.String interval)
ProcessingTime
. If interval
is 0, the query will run as fast as possible.
Example:
df.write.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.write.trigger(ProcessingTime.create(10, TimeUnit.SECONDS))
interval
- (undocumented)unit
- (undocumented)public abstract static boolean canEqual(java.lang.Object that)
public abstract static boolean equals(java.lang.Object that)
public abstract static java.lang.Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<java.lang.Object> productIterator()
public static java.lang.String productPrefix()
public long intervalMs()