Packages

class ListStateImpl[S] extends ListStateMetricsImpl with ListState[S] with Logging

Provides concrete implementation for list of values associated with a state variable used in the streaming transformWithState operator.

S

- data type of object that will be stored in the list

Linear Supertypes
Logging, ListState[S], Serializable, ListStateMetricsImpl, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ListStateImpl
  2. Logging
  3. ListState
  4. Serializable
  5. ListStateMetricsImpl
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ListStateImpl(store: StateStore, stateName: String, keyExprEnc: ExpressionEncoder[Any], valEncoder: ExpressionEncoder[Any], metrics: Map[String, SQLMetric] = Map.empty)

    store

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

    stateName

    - name of logical state partition

    keyExprEnc

    - Spark SQL encoder for key

    valEncoder

    - Spark SQL encoder for value

    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. def appendList(newState: Array[S]): Unit

    Append an entire list to the existing value.

    Append an entire list to the existing value.

    Definition Classes
    ListStateImpl → ListState
  5. def appendValue(newState: S): Unit

    Append an entry to the list.

    Append an entry to the list.

    Definition Classes
    ListStateImpl → ListState
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def baseStateName: String
    Definition Classes
    ListStateImplListStateMetricsImpl
  8. def clear(): Unit

    Remove this state.

    Remove this state.

    Definition Classes
    ListStateImpl → ListState
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def exists(): Boolean

    Whether state exists or not.

    Whether state exists or not.

    Definition Classes
    ListStateImpl → ListState
  13. def exprEncSchema: StructType
    Definition Classes
    ListStateImplListStateMetricsImpl
  14. def get(): Iterator[S]

    Get the state value if it exists.

    Get the state value if it exists. If the state does not exist in state store, an empty iterator is returned.

    Definition Classes
    ListStateImpl → ListState
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  16. def getEntryCount(encodedKey: UnsafeRow): Long

    Function to get the number of entries in the list state for a given grouping key

    Function to get the number of entries in the list state for a given grouping key

    encodedKey

    - encoded grouping key

    returns

    - number of entries in the list state

    Definition Classes
    ListStateMetricsImpl
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  18. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  19. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  22. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  23. def logDebug(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  24. def logDebug(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  25. def logDebug(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  26. def logDebug(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  27. def logError(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  28. def logError(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  29. def logError(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  30. def logError(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  31. def logInfo(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  32. def logInfo(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  33. def logInfo(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  34. def logInfo(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  35. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  36. def logTrace(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  37. def logTrace(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  38. def logTrace(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  39. def logTrace(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  40. def logWarning(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  41. def logWarning(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  42. def logWarning(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  43. def logWarning(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  44. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  45. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  46. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  47. def put(newState: Array[S]): Unit

    Update the value of the list.

    Update the value of the list.

    Definition Classes
    ListStateImpl → ListState
  48. def removeEntryCount(encodedKey: UnsafeRow): Unit

    Function to remove the number of entries in the list state for a given grouping key

    Function to remove the number of entries in the list state for a given grouping key

    encodedKey

    - encoded grouping key

    Definition Classes
    ListStateMetricsImpl
  49. def stateStore: StateStore
    Definition Classes
    ListStateImplListStateMetricsImpl
  50. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  51. def toString(): String
    Definition Classes
    AnyRef → Any
  52. def updateEntryCount(encodedKey: UnsafeRow, updatedCount: Long): Unit

    Function to update the number of entries in the list state for a given grouping key

    Function to update the number of entries in the list state for a given grouping key

    encodedKey

    - encoded grouping key

    updatedCount

    - updated count of entries in the list state

    Definition Classes
    ListStateMetricsImpl
  53. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  54. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  55. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  56. 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 ListState[S]

Inherited from Serializable

Inherited from ListStateMetricsImpl

Inherited from AnyRef

Inherited from Any

Ungrouped