Class ForStHeapTimersFullRestoreOperation<K>
java.lang.Object
org.apache.flink.state.forst.restore.ForStHeapTimersFullRestoreOperation<K>
- All Implemented Interfaces:
AutoCloseable,org.apache.flink.runtime.state.RestoreOperation<ForStRestoreResult>,ForStRestoreOperation
Encapsulates the process of restoring a ForStDB instance from a full snapshot.
-
Constructor Summary
ConstructorsConstructorDescriptionForStHeapTimersFullRestoreOperation(org.apache.flink.runtime.state.KeyGroupRange keyGroupRange, int numberOfKeyGroups, ClassLoader userCodeClassLoader, Map<String, ForStOperationUtils.ForStKvStateInfo> kvStateInformation, LinkedHashMap<String, org.apache.flink.runtime.state.heap.HeapPriorityQueueSnapshotRestoreWrapper<?>> registeredPQStates, org.apache.flink.runtime.state.heap.HeapPriorityQueueSetFactory priorityQueueFactory, org.apache.flink.runtime.state.StateSerializerProvider<K> keySerializerProvider, org.apache.flink.core.fs.Path instanceRocksDBPath, org.forstdb.DBOptions dbOptions, Function<String, org.forstdb.ColumnFamilyOptions> columnFamilyOptionsFactory, ForStNativeMetricOptions nativeMetricOptions, org.apache.flink.metrics.MetricGroup metricGroup, ForStDBTtlCompactFiltersManager ttlCompactFiltersManager, long writeBatchSize, Long writeBufferManagerCapacity, Collection<org.apache.flink.runtime.state.KeyedStateHandle> restoreStateHandles, org.apache.flink.core.fs.ICloseableRegistry cancelStreamRegistryForRestore) -
Method Summary
-
Constructor Details
-
ForStHeapTimersFullRestoreOperation
public ForStHeapTimersFullRestoreOperation(org.apache.flink.runtime.state.KeyGroupRange keyGroupRange, int numberOfKeyGroups, ClassLoader userCodeClassLoader, Map<String, ForStOperationUtils.ForStKvStateInfo> kvStateInformation, LinkedHashMap<String, org.apache.flink.runtime.state.heap.HeapPriorityQueueSnapshotRestoreWrapper<?>> registeredPQStates, org.apache.flink.runtime.state.heap.HeapPriorityQueueSetFactory priorityQueueFactory, org.apache.flink.runtime.state.StateSerializerProvider<K> keySerializerProvider, org.apache.flink.core.fs.Path instanceRocksDBPath, org.forstdb.DBOptions dbOptions, Function<String, org.forstdb.ColumnFamilyOptions> columnFamilyOptionsFactory, ForStNativeMetricOptions nativeMetricOptions, org.apache.flink.metrics.MetricGroup metricGroup, @Nonnull ForStDBTtlCompactFiltersManager ttlCompactFiltersManager, @Nonnegative long writeBatchSize, Long writeBufferManagerCapacity, @Nonnull Collection<org.apache.flink.runtime.state.KeyedStateHandle> restoreStateHandles, org.apache.flink.core.fs.ICloseableRegistry cancelStreamRegistryForRestore)
-
-
Method Details
-
restore
public ForStRestoreResult restore() throws IOException, org.apache.flink.util.StateMigrationException, org.forstdb.RocksDBExceptionRestores all key-groups data that is referenced by the passed state handles.- Specified by:
restorein interfaceForStRestoreOperation- Specified by:
restorein interfaceorg.apache.flink.runtime.state.RestoreOperation<K>- Throws:
IOExceptionorg.apache.flink.util.StateMigrationExceptionorg.forstdb.RocksDBException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-