Package org.apache.spark.sql.streaming
Class TimeMode
Object
org.apache.spark.sql.streaming.TimeMode
Represents the time modes (used for specifying timers and ttl) possible for
the Dataset operations
transformWithState
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final TimeMode
Stateful processor that uses event time to register timers.static final TimeMode
None()
Neither timers nor ttl is supported in this mode.static final TimeMode
Stateful processor that uses query processing time to register timers and calculate ttl expiration.
-
Constructor Details
-
TimeMode
public TimeMode()
-
-
Method Details
-
None
Neither timers nor ttl is supported in this mode. -
ProcessingTime
Stateful processor that uses query processing time to register timers and calculate ttl expiration. -
EventTime
Stateful processor that uses event time to register timers. Note that ttl is not supported in this TimeMode.
-