Package org.apache.spark.sql.streaming
Class TTLConfig
Object
org.apache.spark.sql.streaming.TTLConfig
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product
TTL Configuration for state variable. State values will not be returned past ttlDuration, and
will be eventually removed from the state store. Any state update resets the ttl to current
processing time plus ttlDuration.
Passing a TTL duration of zero will disable the TTL for the state variable. Users can also use
the helper method TTLConfig.NONE in Scala or TTLConfig.NONE() in Java to disable TTL for
the state variable.
param: ttlDuration time to live duration for state stored in the state variable.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
TTLConfig
-
-
Method Details
-
NONE
Helper method to create a TTLConfig with expiry duration as Zero- Returns:
- \- TTLConfig with expiry duration as Zero
-
ttlDuration
-