StreamingAggregationStateManagerBaseImpl
is the base implementation of the StreamingAggregationStateManager contract for state managers for streaming aggregations that use UnsafeProjection to getKey.
StreamingAggregationStateManagerBaseImpl
uses UnsafeProjection
to getKey.
StreamingAggregationStateManagerBaseImpl | Description |
---|---|
Legacy StreamingAggregationStateManager (used when spark.sql.streaming.aggregation.stateFormatVersion configuration property is |
|
Default StreamingAggregationStateManager (used when spark.sql.streaming.aggregation.stateFormatVersion configuration property is |
StreamingAggregationStateManagerBaseImpl
takes the following to be created:
Note
|
StreamingAggregationStateManagerBaseImpl is a Scala abstract class and cannot be created directly. It is created indirectly for the concrete StreamingAggregationStateManagerBaseImpls.
|
commit(store: StateStore): Long
Note
|
commit is part of the StreamingAggregationStateManager Contract to commit changes to a state store.
|
commit
simply requests the state store to commit state changes.
remove(store: StateStore, key: UnsafeRow): Unit
Note
|
remove is part of the StreamingAggregationStateManager Contract to remove a key from a state store.
|
remove
…FIXME
getKey(row: UnsafeRow): UnsafeRow
Note
|
getKey is part of the StreamingAggregationStateManager Contract to…FIXME
|
getKey
…FIXME
keys(store: StateStore): Iterator[UnsafeRow]
Note
|
keys is part of the StreamingAggregationStateManager Contract to get all keys in a state store (as an iterator).
|
keys
…FIXME