]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/RestoreOptions.java
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under both the GPLv2 (found in the
3 // COPYING file in the root directory) and Apache 2.0 License
4 // (found in the LICENSE.Apache file in the root directory).
9 * RestoreOptions to control the behavior of restore.
11 * Note that dispose() must be called before this instance become out-of-scope
12 * to release the allocated memory in c++.
15 public class RestoreOptions
extends RocksObject
{
19 * @param keepLogFiles If true, restore won't overwrite the existing log files
20 * in wal_dir. It will also move all log files from archive directory to
21 * wal_dir. Use this option in combination with
22 * BackupEngineOptions::backup_log_files = false for persisting in-memory
26 public RestoreOptions(final boolean keepLogFiles
) {
27 super(newRestoreOptions(keepLogFiles
));
30 private native static long newRestoreOptions(boolean keepLogFiles
);
31 @Override protected final native void disposeInternal(final long handle
);