Package org.rocksdb
Class RestoreOptions
- java.lang.Object
-
- org.rocksdb.AbstractNativeReference
-
- org.rocksdb.AbstractImmutableNativeReference
-
- org.rocksdb.RocksObject
-
- org.rocksdb.RestoreOptions
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class RestoreOptions extends RocksObject
RestoreOptions to control the behavior of restore. Note that dispose() must be called before this instance become out-of-scope to release the allocated memory in c++.
-
-
Field Summary
-
Fields inherited from class org.rocksdb.RocksObject
nativeHandle_
-
Fields inherited from class org.rocksdb.AbstractImmutableNativeReference
owningHandle_
-
-
Constructor Summary
Constructors Constructor Description RestoreOptions(boolean keepLogFiles)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddisposeInternal(long handle)-
Methods inherited from class org.rocksdb.RocksObject
disposeInternal, getNativeHandle
-
Methods inherited from class org.rocksdb.AbstractImmutableNativeReference
close, disOwnNativeHandle, isOwningHandle
-
Methods inherited from class org.rocksdb.AbstractNativeReference
dispose, finalize
-
-
-
-
Constructor Detail
-
RestoreOptions
public RestoreOptions(boolean keepLogFiles)
Constructor- Parameters:
keepLogFiles- If true, restore won't overwrite the existing log files in wal_dir. It will also move all log files from archive directory to wal_dir. Use this option in combination with BackupableDBOptions::backup_log_files = false for persisting in-memory databases. Default: false
-
-
Method Detail
-
disposeInternal
protected final void disposeInternal(long handle)
- Specified by:
disposeInternalin classRocksObject
-
-