StateStore¶
StateStore is an abstraction of storage engines (for the state of a stream processor).
Contract¶
Closing¶
void close()
Flushing Cached Data¶
void flush()
Flushing cached data of this StateStore
Used when:
GlobalStateManagerImplis requested to flush all global state storesProcessorStateManageris requested to flush all state stores and flushCache
Initializing¶
void init(
StateStoreContext context,
StateStore root)
isOpen¶
boolean isOpen()
Name¶
String name()
persistent¶
boolean persistent()
Used when:
GlobalStateManagerImplis created (and finds global non-persistent state stores)ProcessorStateManageris requested to initializeStoreOffsetsFromCheckpoint and checkpointProcessorTopologyis requested to hasPersistentLocalStore and hasPersistentGlobalStoreTimestampedKeyValueStoreBuilderis requested to build aTimestampedKeyValueStoreTimestampedWindowStoreBuilderis requested to build aTimestampedWindowStore- others
Implementations¶
- KeyValueStore
SegmentedBytesStoreSessionStoreTimeOrderedKeyValueBuffer- WindowStore
- WrappedStateStore