void reinitializeStateStoresForPartitions(
Logger log,
Map<String, StateStore> stateStores,
Map<String, String> storeToChangelogTopic,
Collection<TopicPartition> partitions,
InternalProcessorContext processorContext)
AbstractStateManager — Base State Manager
AbstractStateManager
is the base implementation of the StateManager contract for state managers that use offset checkpointing.
Note
|
AbstractStateManager is a Java abstract class and cannot be created directly. It is created indirectly for the concrete AbstractStateManagers.
|
AbstractStateManager
uses .checkpoint for the name of the checkpoint offset file.
AbstractStateManager | Description |
---|---|
Creating AbstractStateManager Instance
AbstractStateManager
takes the following to be created:
AbstractStateManager
initializes the internal properties.
Note
|
AbstractStateManager is a Java abstract class and cannot be created directly. It is created indirectly for the concrete AbstractStateManagers.
|
reinitializeStateStoresForPartitions
Method
reinitializeStateStoresForPartitions
…FIXME
Note
|
|
inverseOneToOneMap
Internal Method
Map<String, String> inverseOneToOneMap(Map<String, String> origin)
inverseOneToOneMap
…FIXME
Note
|
inverseOneToOneMap is used exclusively when AbstractStateManager is requested to reinitializeStateStoresForPartitions.
|
converterForStore
Static Method
RecordConverter converterForStore(StateStore store)
converterForStore
…FIXME
Note
|
converterForStore is used when…FIXME
|
Internal Properties
Name | Description |
---|---|
|
OffsetCheckpoint with the .checkpoint file in the base directory. Initialized to a new OffsetCheckpoint when Used when:
|
|
Collection of Kafka TopicPartitions with offsets ( Entries (partitions with offsets) added when:
|
|
Global state stores by name (managed by GlobalStateManagerImpl mostly) New state stores added when:
State stores removed when:
|
|
State stores by name (managed by ProcessorStateManager) New state stores added when:
State stores removed when:
|