Class RocksDBFullRestoreOperation<K>

java.lang.Object
org.apache.flink.state.rocksdb.restore.RocksDBFullRestoreOperation<K>
All Implemented Interfaces:
AutoCloseable, org.apache.flink.runtime.state.RestoreOperation<RocksDBRestoreResult>, RocksDBRestoreOperation

public class RocksDBFullRestoreOperation<K> extends Object implements RocksDBRestoreOperation
Encapsulates the process of restoring a RocksDB instance from a full snapshot.
  • Constructor Details

    • RocksDBFullRestoreOperation

      public RocksDBFullRestoreOperation(org.apache.flink.runtime.state.KeyGroupRange keyGroupRange, ClassLoader userCodeClassLoader, Map<String,RocksDBKeyedStateBackend.RocksDbKvStateInfo> kvStateInformation, org.apache.flink.runtime.state.StateSerializerProvider<K> keySerializerProvider, File instanceRocksDBPath, org.rocksdb.DBOptions dbOptions, Function<String,org.rocksdb.ColumnFamilyOptions> columnFamilyOptionsFactory, RocksDBNativeMetricOptions nativeMetricOptions, org.apache.flink.metrics.MetricGroup metricGroup, @Nonnull Collection<org.apache.flink.runtime.state.KeyedStateHandle> restoreStateHandles, @Nonnull RocksDbTtlCompactFiltersManager ttlCompactFiltersManager, @Nonnegative long writeBatchSize, Long writeBufferManagerCapacity, org.apache.flink.core.fs.ICloseableRegistry cancelStreamRegistryForRestore)
  • Method Details

    • restore

      public RocksDBRestoreResult restore() throws IOException, org.apache.flink.util.StateMigrationException, org.rocksdb.RocksDBException
      Restores all key-groups data that is referenced by the passed state handles.
      Specified by:
      restore in interface org.apache.flink.runtime.state.RestoreOperation<K>
      Specified by:
      restore in interface RocksDBRestoreOperation
      Throws:
      IOException
      org.apache.flink.util.StateMigrationException
      org.rocksdb.RocksDBException
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception