Class RocksDBNoneRestoreOperation<K>
- java.lang.Object
-
- org.apache.flink.contrib.streaming.state.restore.RocksDBNoneRestoreOperation<K>
-
- All Implemented Interfaces:
AutoCloseable
,RocksDBRestoreOperation
,RestoreOperation<RocksDBRestoreResult>
public class RocksDBNoneRestoreOperation<K> extends Object implements RocksDBRestoreOperation
Encapsulates the process of initiating a RocksDB instance without restore.
-
-
Constructor Summary
Constructors Constructor Description RocksDBNoneRestoreOperation(Map<String,RocksDBKeyedStateBackend.RocksDbKvStateInfo> kvStateInformation, File instanceRocksDBPath, org.rocksdb.DBOptions dbOptions, Function<String,org.rocksdb.ColumnFamilyOptions> columnFamilyOptionsFactory, RocksDBNativeMetricOptions nativeMetricOptions, MetricGroup metricGroup, RocksDbTtlCompactFiltersManager ttlCompactFiltersManager, Long writeBufferManagerCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
RocksDBRestoreResult
restore()
Restores state that was previously snapshot-ed from the provided state handles.
-
-
-
Constructor Detail
-
RocksDBNoneRestoreOperation
public RocksDBNoneRestoreOperation(Map<String,RocksDBKeyedStateBackend.RocksDbKvStateInfo> kvStateInformation, File instanceRocksDBPath, org.rocksdb.DBOptions dbOptions, Function<String,org.rocksdb.ColumnFamilyOptions> columnFamilyOptionsFactory, RocksDBNativeMetricOptions nativeMetricOptions, MetricGroup metricGroup, @Nonnull RocksDbTtlCompactFiltersManager ttlCompactFiltersManager, Long writeBufferManagerCapacity)
-
-
Method Detail
-
restore
public RocksDBRestoreResult restore() throws Exception
Description copied from interface:RocksDBRestoreOperation
Restores state that was previously snapshot-ed from the provided state handles.- Specified by:
restore
in interfaceRestoreOperation<K>
- Specified by:
restore
in interfaceRocksDBRestoreOperation
- Throws:
Exception
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
-