| Package | Description |
|---|---|
| org.rocksdb |
The RocksDB Java driver
|
| Modifier and Type | Class and Description |
|---|---|
class |
RocksEnv
A RocksEnv is an interface used by the rocksdb implementation to access
operating system functionality like the filesystem etc.
|
class |
RocksMemEnv
Memory environment.
|
class |
TimedEnv
Timed environment.
|
| Modifier and Type | Method and Description |
|---|---|
Env |
BackupEngineOptions.backupEnv()
Backup Env object.
|
static Env |
Env.getDefault()
Returns the default environment suitable for the current operating
system.
|
Env |
DBOptions.getEnv() |
Env |
DBOptionsInterface.getEnv()
Returns the set RocksEnv instance.
|
Env |
Options.getEnv() |
Env |
RocksDB.getEnv()
Get the Env object from the DB
|
Env |
Env.incBackgroundThreadsIfNeeded(int number,
Priority priority)
Enlarge number of background worker threads of a specific thread pool
for this environment if it is smaller than specified.
|
Env |
Env.lowerThreadPoolCPUPriority(Priority priority)
Lower CPU priority for threads from the specified pool.
|
Env |
Env.lowerThreadPoolIOPriority(Priority priority)
Lower IO priority for threads from the specified pool.
|
Env |
Env.setBackgroundThreads(int number)
Sets the number of background worker threads of the low priority
pool for this environment.
|
Env |
Env.setBackgroundThreads(int number,
Priority priority)
Sets the number of background worker threads of the specified thread
pool for this environment.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
OptionsUtil.getLatestOptionsFileName(String dbPath,
Env env)
Returns the latest options file name under the specified RocksDB path.
|
static void |
OptionsUtil.loadLatestOptions(String dbPath,
Env env,
DBOptions dbOptions,
List<ColumnFamilyDescriptor> cfDescs)
A static method to construct the DBOptions and ColumnFamilyDescriptors by
loading the latest RocksDB options file stored in the specified rocksdb
database.
|
static void |
OptionsUtil.loadLatestOptions(String dbPath,
Env env,
DBOptions dbOptions,
List<ColumnFamilyDescriptor> cfDescs,
boolean ignoreUnknownOptions) |
static void |
OptionsUtil.loadOptionsFromFile(String optionsFileName,
Env env,
DBOptions dbOptions,
List<ColumnFamilyDescriptor> cfDescs)
Similar to LoadLatestOptions, this function constructs the DBOptions
and ColumnFamilyDescriptors based on the specified RocksDB Options file.
|
static void |
OptionsUtil.loadOptionsFromFile(String optionsFileName,
Env env,
DBOptions dbOptions,
List<ColumnFamilyDescriptor> cfDescs,
boolean ignoreUnknownOptions) |
static BackupEngine |
BackupEngine.open(Env env,
BackupEngineOptions options)
Opens a new Backup Engine
|
BackupEngineOptions |
BackupEngineOptions.setBackupEnv(Env env)
Backup Env object.
|
ConfigOptions |
ConfigOptions.setEnv(Env env) |
DBOptions |
DBOptions.setEnv(Env env) |
T |
DBOptionsInterface.setEnv(Env env)
Use the specified object to interact with the environment,
e.g. to read/write files, schedule background work, etc.
|
Options |
Options.setEnv(Env env) |
| Constructor and Description |
|---|
PersistentCache(Env env,
String path,
long size,
Logger logger,
boolean optimizedForNvm) |
RocksMemEnv(Env baseEnv)
Creates a new environment that stores its data
in memory and delegates all non-file-storage tasks to
baseEnv. |
SstFileManager(Env env)
Create a new SstFileManager that can be shared among multiple RocksDB
instances to track SST file and control there deletion rate.
|
SstFileManager(Env env,
Logger logger)
Create a new SstFileManager that can be shared among multiple RocksDB
instances to track SST file and control there deletion rate.
|
SstFileManager(Env env,
Logger logger,
long rateBytesPerSec)
Create a new SstFileManager that can be shared among multiple RocksDB
instances to track SST file and control there deletion rate.
|
SstFileManager(Env env,
Logger logger,
long rateBytesPerSec,
double maxTrashDbRatio)
Create a new SstFileManager that can be shared among multiple RocksDB
instances to track SST file and control there deletion rate.
|
SstFileManager(Env env,
Logger logger,
long rateBytesPerSec,
double maxTrashDbRatio,
long bytesMaxDeleteChunk)
Create a new SstFileManager that can be shared among multiple RocksDB
instances to track SST file and control there deletion rate.
|
TimedEnv(Env baseEnv)
Creates a new environment that measures function call times for
filesystem operations, reporting results to variables in PerfContext.
|
Copyright © 2022. All rights reserved.