Package org.apache.spark.sql.streaming
Class GroupStateTimeout
Object
org.apache.spark.sql.streaming.GroupStateTimeout
Represents the type of timeouts possible for the Dataset operations
 
mapGroupsWithState and flatMapGroupsWithState.
 
 See documentation on GroupState for more details.
- Since:
- 2.2.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic GroupStateTimeoutTimeout based on event-time.static GroupStateTimeoutNo timeout.static GroupStateTimeoutTimeout based on processing time.
- 
Constructor Details- 
GroupStateTimeoutpublic GroupStateTimeout()
 
- 
- 
Method Details- 
ProcessingTimeTimeoutTimeout based on processing time.The duration of timeout can be set for each group in map/flatMapGroupsWithStateby callingGroupState.setTimeoutDuration().See documentation on GroupStatefor more details.
- 
EventTimeTimeoutTimeout based on event-time.The event-time timestamp for timeout can be set for each group in map/flatMapGroupsWithStateby callingGroupState.setTimeoutTimestamp(). In addition, you have to define the watermark in the query usingDataset.withWatermark. When the watermark advances beyond the set timestamp of a group and the group has not received any data, then the group times out.See documentation on GroupStatefor more details.
- 
NoTimeoutNo timeout.
 
-