@Internal public class ChangelogStateBackend extends AbstractChangelogStateBackend implements ConfigurableStateBackend
StateBackend.CustomInitializationMetrics, StateBackend.KeyedStateBackendParameters<K>, StateBackend.OperatorStateBackendParameters
delegatedStateBackend
Modifier and Type | Method and Description |
---|---|
StateBackend |
configure(ReadableConfig config,
ClassLoader classLoader)
Creates a variant of the state backend that applies additional configuration parameters.
|
protected <K> CheckpointableKeyedStateBackend<K> |
restore(Environment env,
String operatorIdentifier,
KeyGroupRange keyGroupRange,
TtlTimeProvider ttlTimeProvider,
MetricGroup metricGroup,
Collection<ChangelogStateBackendHandle> stateBackendHandles,
ChangelogBackendRestoreOperation.BaseBackendBuilder<K> baseBackendBuilder) |
createKeyedStateBackend, createOperatorStateBackend, getDelegatedStateBackend, supportsSavepointFormat, useManagedMemory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createAsyncKeyedStateBackend, createKeyedStateBackend, createOperatorStateBackend, getName, supportsAsyncKeyedStateBackend, supportsNoClaimRestoreMode, supportsSavepointFormat, useManagedMemory
getName
public StateBackend configure(ReadableConfig config, ClassLoader classLoader) throws IllegalConfigurationException
ConfigurableStateBackend
Settings that were directly done on the original state backend object in the application program typically have precedence over setting picked up from the configuration.
If no configuration is applied, or if the method directly applies configuration values to the (mutable) state backend object, this method may return the original state backend object. Otherwise it typically returns a modified copy.
configure
in interface ConfigurableStateBackend
config
- The configuration to pick the values from.classLoader
- The class loader that should be used to load the state backend.IllegalConfigurationException
- Thrown if the configuration contained invalid entries.protected <K> CheckpointableKeyedStateBackend<K> restore(Environment env, String operatorIdentifier, KeyGroupRange keyGroupRange, TtlTimeProvider ttlTimeProvider, MetricGroup metricGroup, Collection<ChangelogStateBackendHandle> stateBackendHandles, ChangelogBackendRestoreOperation.BaseBackendBuilder<K> baseBackendBuilder) throws Exception
restore
in class AbstractChangelogStateBackend
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.