Class TTLConfig

Object
org.apache.spark.sql.streaming.TTLConfig
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product

public class TTLConfig extends Object implements scala.Product, Serializable
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.

param: ttlDuration time to live duration for state stored in the state variable.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    TTLConfig(Duration ttlDuration)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract static R
    apply(T1 v1)
     
    static String
     
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface scala.Equals

    canEqual, equals

    Methods inherited from interface scala.Product

    productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
  • Constructor Details

    • TTLConfig

      public TTLConfig(Duration ttlDuration)
  • Method Details

    • apply

      public abstract static R apply(T1 v1)
    • toString

      public static String toString()
    • ttlDuration

      public Duration ttlDuration()