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)
|
abstract static boolean |
canEqual(Object that)
Deprecated.
|
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)
|
abstract static boolean |
equals(Object that)
Deprecated.
|
long |
intervalMs()
Deprecated.
|
abstract static int |
productArity()
Deprecated.
|
abstract static Object |
productElement(int n)
Deprecated.
|
static scala.collection.Iterator<Object> |
productIterator()
Deprecated.
|
static String |
productPrefix()
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 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()