| Modifier and Type | Field and Description |
|---|---|
static org.rocksdb.FlushOptions |
flushOptions |
| Modifier and Type | Method and Description |
|---|---|
void |
close(YRDB yrdb)
immediately closes the database
|
void |
closeIfOpen(String absolutePath)
Close the DB if open (called when dropping the table)
|
void |
delete(String file) |
void |
dispose(YRDB rdb) |
CompletableFuture<Void> |
doBackup(String dbpath,
String backupDir)
Performs a backup of the database to the given directory
|
static RDBFactory |
getInstance(String instance) |
List<String> |
getOpenDbPaths() |
YRDB |
getOpenRdb(String absolutePath)
Get the database which is already open or null if it is not open
|
YRDB |
getRdb(String absolutePath,
boolean readonly)
Opens or create a database.
|
YRDB |
getRdb(String absolutePath,
int prefixSize,
boolean readonly) |
CompletableFuture<Void> |
restoreBackup(int backupId,
String backupDir,
String dbPath) |
CompletableFuture<Void> |
restoreBackup(String backupDir,
String dbPath) |
void |
run() |
public static RDBFactory getInstance(String instance)
public YRDB getRdb(String absolutePath, boolean readonly) throws IOException
absolutePath - - absolute path - should be a directoryreadonly - - open in readonly mode; if the database is open in readwrite mode, it will be returned like thatIOExceptionpublic YRDB getRdb(String absolutePath, int prefixSize, boolean readonly) throws IOException
IOExceptionpublic void delete(String file)
public void dispose(YRDB rdb)
public void closeIfOpen(String absolutePath)
absolutePath - public YRDB getOpenRdb(String absolutePath)
absolutePath - the absoulte path of the database to be returnedpublic void close(YRDB yrdb)
yrdb - public CompletableFuture<Void> doBackup(String dbpath, String backupDir)
dbpath - backupDir - public CompletableFuture<Void> restoreBackup(String backupDir, String dbPath)
public CompletableFuture<Void> restoreBackup(int backupId, String backupDir, String dbPath)
Copyright © 2018 Space Applications Services. All rights reserved.