getAllState(store: StateStore): Iterator[StateData]
StateManager Contract — State Managers for Arbitrary Stateful Streaming Aggregation
StateManager
is the abstraction of state managers that act as middlemen between state stores and the FlatMapGroupsWithStateExec physical operator used in Arbitrary Stateful Streaming Aggregation.
Method | Description | ||
---|---|---|---|
|
Retrieves all state data (for all keys) from the StateStore Used exclusively when |
||
|
Gets the state data for the key from the StateStore Used exclusively when |
||
|
Persists (puts) the state value for the key in the StateStore Used exclusively when |
||
|
Removes the state for the key from the StateStore Used exclusively when |
||
|
State schema
Used when:
|
Note
|
StateManagerImplBase is the one and only known direct implementation of the StateManager Contract in Spark Structured Streaming. |
Note
|
StateManager is a Scala sealed trait which means that all the implementations are in the same compilation unit (a single file).
|