Packages

c

org.apache.spark.sql.execution.streaming.state

StreamingSessionWindowStateManagerImplV1

class StreamingSessionWindowStateManagerImplV1 extends StreamingSessionWindowStateManager with Logging

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StreamingSessionWindowStateManagerImplV1
  2. Logging
  3. StreamingSessionWindowStateManager
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new StreamingSessionWindowStateManagerImplV1(keyWithoutSessionExpressions: Seq[Attribute], sessionExpression: Attribute, valueAttributes: Seq[Attribute])

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 abortIfNeeded(store: StateStore): Unit

    Aborts the change.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def commit(store: StateStore): Long

    Commits the change.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def extractKeyWithoutSession(value: UnsafeRow): UnsafeRow

    Extracts the key without session window from the row.

    Extracts the key without session window from the row. This can be used to group session windows by key.

    Definition Classes
    StreamingSessionWindowStateManagerImplV1StreamingSessionWindowStateManager
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def getNumColsForPrefixKey: Int

    Returns the number of columns for prefix key in key schema.

    Returns the number of columns for prefix key in key schema.

    Definition Classes
    StreamingSessionWindowStateManagerImplV1StreamingSessionWindowStateManager
  14. def getSessions(store: ReadStateStore, key: UnsafeRow): Iterator[UnsafeRow]

    Returns all sessions for the key.

    Returns all sessions for the key.

    key

    The key without session, which can be retrieved from extractKeyWithoutSession.

    Definition Classes
    StreamingSessionWindowStateManagerImplV1StreamingSessionWindowStateManager
  15. def getStateKeySchema: StructType

    Returns the schema for key of the state.

    Returns the schema for key of the state.

    Definition Classes
    StreamingSessionWindowStateManagerImplV1StreamingSessionWindowStateManager
  16. def getStateValueSchema: StructType

    Returns the schema for value of the state.

    Returns the schema for value of the state.

    Definition Classes
    StreamingSessionWindowStateManagerImplV1StreamingSessionWindowStateManager
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @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 iterator(store: ReadStateStore): Iterator[UnsafeRow]

    Return an iterator containing all the sessions.

    Return an iterator containing all the sessions. Implementations must ensure that updates (puts, removes) can be made while iterating over this iterator.

    Definition Classes
    StreamingSessionWindowStateManagerImplV1StreamingSessionWindowStateManager
  23. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  24. def logDebug(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  25. def logDebug(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  26. def logError(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  27. def logError(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  28. def logInfo(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  29. def logInfo(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  30. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  31. def logTrace(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  32. def logTrace(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  33. def logWarning(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  34. def logWarning(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. def newOrModified(store: ReadStateStore, value: UnsafeRow): Boolean

    Returns true if the session of the given value doesn't exist in the store, or the value in the session is different to the stored value of the session in the store.

    Returns true if the session of the given value doesn't exist in the store, or the value in the session is different to the stored value of the session in the store. This can be used to control the output in UPDATE mode.

    Definition Classes
    StreamingSessionWindowStateManagerImplV1StreamingSessionWindowStateManager
  37. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. def removeByValueCondition(store: StateStore, removalCondition: (UnsafeRow) => Boolean): Iterator[UnsafeRow]

    Removes using a predicate on values, with returning removed values via iterator.

    Removes using a predicate on values, with returning removed values via iterator.

    At a high level, this produces an iterator over the (key, value, matched) tuples such that value satisfies the predicate, where producing an element removes the value from the state store and producing all elements with a given key updates it accordingly.

    This implies the iterator must be consumed fully without any other operations on this manager or the underlying store being interleaved.

    removalCondition

    The predicate on removing the key-value.

    Definition Classes
    StreamingSessionWindowStateManagerImplV1StreamingSessionWindowStateManager
  40. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  41. def toString(): String
    Definition Classes
    AnyRef → Any
  42. def updateSessions(store: StateStore, key: UnsafeRow, sessions: Seq[UnsafeRow]): (Long, Long)

    Replaces all sessions for the key to given one.

    Replaces all sessions for the key to given one.

    key

    The key without session, which can be retrieved from extractKeyWithoutSession.

    sessions

    The all sessions including existing sessions if it's active. Existing sessions which aren't included in this parameter will be removed.

    returns

    A tuple having two elements

    1. number of added/updated rows 2. number of deleted rows
    Definition Classes
    StreamingSessionWindowStateManagerImplV1StreamingSessionWindowStateManager
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Logging

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped