public class ProcessingTime extends 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(String interval)
Create a
ProcessingTime . |
abstract static boolean |
canEqual(Object that) |
static ProcessingTime |
create(long interval,
java.util.concurrent.TimeUnit unit)
Create a
ProcessingTime . |
static ProcessingTime |
create(String interval)
Create a
ProcessingTime . |
abstract static boolean |
equals(Object that) |
long |
intervalMs() |
abstract static int |
productArity() |
abstract static Object |
productElement(int n) |
static scala.collection.Iterator<Object> |
productIterator() |
static String |
productPrefix() |
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.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(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(Object that)
public abstract static boolean equals(Object that)
public abstract static Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<Object> productIterator()
public static String productPrefix()
public long intervalMs()