|
|
|
@ -2174,6 +2174,21 @@ public class RocksDB extends RocksObject { |
|
|
|
|
filePathList.size(), ingestExternalFileOptions.nativeHandle_); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Static method to destroy the contents of the specified database. |
|
|
|
|
* Be very careful using this method. |
|
|
|
|
* |
|
|
|
|
* @param path the path to the Rocksdb database. |
|
|
|
|
* @param options {@link org.rocksdb.Options} instance. |
|
|
|
|
* |
|
|
|
|
* @throws RocksDBException thrown if error happens in underlying |
|
|
|
|
* native library. |
|
|
|
|
*/ |
|
|
|
|
public static void destroyDB(final String path, final Options options) |
|
|
|
|
throws RocksDBException { |
|
|
|
|
destroyDB(path, options.nativeHandle_); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Private constructor. |
|
|
|
|
* |
|
|
|
@ -2380,5 +2395,7 @@ public class RocksDB extends RocksObject { |
|
|
|
|
private native void ingestExternalFile(long handle, long cfHandle, |
|
|
|
|
String[] filePathList, int filePathListLen, |
|
|
|
|
long ingest_external_file_options_handle) throws RocksDBException; |
|
|
|
|
private native static void destroyDB(final String path, |
|
|
|
|
final long optionsHandle) throws RocksDBException; |
|
|
|
|
protected DBOptionsInterface options_; |
|
|
|
|
} |
|
|
|
|