class StreamingSessionWindowStateManagerImplV1 extends StreamingSessionWindowStateManager with Logging
- Alphabetic
- By Inheritance
- StreamingSessionWindowStateManagerImplV1
- Logging
- StreamingSessionWindowStateManager
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new StreamingSessionWindowStateManagerImplV1(keyWithoutSessionExpressions: Seq[Attribute], sessionExpression: Attribute, valueAttributes: Seq[Attribute])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
abortIfNeeded(store: StateStore): Unit
Aborts the change.
Aborts the change.
- Definition Classes
- StreamingSessionWindowStateManagerImplV1 → StreamingSessionWindowStateManager
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
commit(store: StateStore): Long
Commits the change.
Commits the change.
- Definition Classes
- StreamingSessionWindowStateManagerImplV1 → StreamingSessionWindowStateManager
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
- StreamingSessionWindowStateManagerImplV1 → StreamingSessionWindowStateManager
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getNumColsForPrefixKey: Int
Returns the number of columns for
prefix keyin key schema.Returns the number of columns for
prefix keyin key schema.- Definition Classes
- StreamingSessionWindowStateManagerImplV1 → StreamingSessionWindowStateManager
-
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
- StreamingSessionWindowStateManagerImplV1 → StreamingSessionWindowStateManager
-
def
getStateKeySchema: StructType
Returns the schema for key of the state.
Returns the schema for key of the state.
- Definition Classes
- StreamingSessionWindowStateManagerImplV1 → StreamingSessionWindowStateManager
-
def
getStateValueSchema: StructType
Returns the schema for value of the state.
Returns the schema for value of the state.
- Definition Classes
- StreamingSessionWindowStateManagerImplV1 → StreamingSessionWindowStateManager
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
- Attributes
- protected
- Definition Classes
- Logging
-
def
initializeLogIfNecessary(isInterpreter: Boolean): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isTraceEnabled(): Boolean
- Attributes
- protected
- Definition Classes
- Logging
-
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
- StreamingSessionWindowStateManagerImplV1 → StreamingSessionWindowStateManager
-
def
log: Logger
- Attributes
- protected
- Definition Classes
- Logging
-
def
logDebug(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logDebug(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logError(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logError(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logInfo(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logInfo(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logName: String
- Attributes
- protected
- Definition Classes
- Logging
-
def
logTrace(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logTrace(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logWarning(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logWarning(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
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
- StreamingSessionWindowStateManagerImplV1 → StreamingSessionWindowStateManager
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
- StreamingSessionWindowStateManagerImplV1 → StreamingSessionWindowStateManager
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
- number of added/updated rows 2. number of deleted rows
- Definition Classes
- StreamingSessionWindowStateManagerImplV1 → StreamingSessionWindowStateManager
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()