Packages

class MapStateImplWithTTL[K, V] extends OneToOneTTLState with MapState[K, V] with Logging

Class that provides a concrete implementation for map state associated with state variables (with ttl expiration support) used in the streaming transformWithState operator.

K

- type of key for map state variable

V

- type of value for map state variable

returns

- instance of MapState of type [K,V] that can be used to store state persistently

Linear Supertypes
Logging, MapState[K, V], Serializable, OneToOneTTLState, TTLState, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MapStateImplWithTTL
  2. Logging
  3. MapState
  4. Serializable
  5. OneToOneTTLState
  6. TTLState
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new MapStateImplWithTTL(store: StateStore, stateName: String, keyExprEnc: ExpressionEncoder[Any], userKeyEnc: ExpressionEncoder[Any], valEncoder: ExpressionEncoder[Any], ttlConfig: TTLConfig, batchTimestampMs: Long, metrics: Map[String, SQLMetric])

    store

    - reference to the StateStore instance to be used for storing state

    stateName

    - name of the state variable

    keyExprEnc

    - Spark SQL encoder for key

    userKeyEnc

    - Spark SQL encoder for the map key

    valEncoder

    - SQL encoder for state variable

    ttlConfig

    - the ttl configuration (time to live duration etc.)

    batchTimestampMs

    - current batch processing timestamp.

    metrics

    - metrics to be updated as part of stateful processing

Type Members

  1. implicit class LogStringContext extends AnyRef
    Definition Classes
    Logging

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clear(): Unit

    Remove this state.

    Remove this state.

    Definition Classes
    MapStateImplWithTTL → MapState
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. def containsKey(key: K): Boolean

    Check if the user key is contained in the map

    Check if the user key is contained in the map

    Definition Classes
    MapStateImplWithTTL → MapState
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def exists(): Boolean

    Whether state exists or not.

    Whether state exists or not.

    Definition Classes
    MapStateImplWithTTL → MapState
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  12. def getValue(key: K): V

    Get the state value if it exists

    Get the state value if it exists

    Definition Classes
    MapStateImplWithTTL → MapState
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  15. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  18. def iterator(): Iterator[(K, V)]

    Get the map associated with grouping key

    Get the map associated with grouping key

    Definition Classes
    MapStateImplWithTTL → MapState
  19. def keys(): Iterator[K]

    Get the list of keys present in map associated with grouping key

    Get the list of keys present in map associated with grouping key

    Definition Classes
    MapStateImplWithTTL → MapState
  20. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  21. def logDebug(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  22. def logDebug(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  23. def logDebug(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  24. def logDebug(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  25. def logError(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  26. def logError(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  27. def logError(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  28. def logError(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  29. def logInfo(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  30. def logInfo(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  31. def logInfo(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  32. def logInfo(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  33. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  34. def logTrace(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  35. def logTrace(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  36. def logTrace(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  37. def logTrace(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  38. def logWarning(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  39. def logWarning(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  40. def logWarning(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  41. def logWarning(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  42. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  44. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  45. def removeKey(key: K): Unit

    Remove user key from map state

    Remove user key from map state

    Definition Classes
    MapStateImplWithTTL → MapState
  46. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  47. def toString(): String
    Definition Classes
    AnyRef → Any
  48. def updateValue(key: K, value: V): Unit

    Update value for given user key

    Update value for given user key

    Definition Classes
    MapStateImplWithTTL → MapState
  49. def values(): Iterator[V]

    Get the list of values present in map associated with grouping key

    Get the list of values present in map associated with grouping key

    Definition Classes
    MapStateImplWithTTL → MapState
  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  52. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  53. def withLogContext(context: Map[String, String])(body: => Unit): Unit
    Attributes
    protected
    Definition Classes
    Logging

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Logging

Inherited from MapState[K, V]

Inherited from Serializable

Inherited from OneToOneTTLState

Inherited from TTLState

Inherited from AnyRef

Inherited from Any

Ungrouped