public final class StorageOptionsFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.rocksdb.ColumnFamilyOptions |
getDefaultRocksDBColumnFamilyOptions() |
static org.rocksdb.DBOptions |
getDefaultRocksDBOptions() |
static org.rocksdb.BlockBasedTableConfig |
getDefaultRocksDBTableConfig() |
static org.rocksdb.ColumnFamilyOptions |
getRocksDBColumnFamilyOptions(String groupId,
Class<?> cls)
Get a new default ColumnFamilyOptions or a copy of the exist
ColumnFamilyOptions.
|
static org.rocksdb.DBOptions |
getRocksDBOptions(String groupId,
Class<?> cls)
Get a new default DBOptions or a copy of the exist DBOptions.
|
static org.rocksdb.BlockBasedTableConfig |
getRocksDBTableFormatConfig(String groupId,
Class<?> cls)
Get a new default TableFormatConfig or a copy of the exist ableFormatConfig.
|
static void |
registerRocksDBColumnFamilyOptions(Class<?> cls,
org.rocksdb.ColumnFamilyOptions opts)
Users can register a custom rocksdb ColumnFamilyOptions, then the
related classes will get their options by the key of their own class
name.
|
static void |
registerRocksDBColumnFamilyOptions(String groupId,
Class<?> cls,
org.rocksdb.ColumnFamilyOptions opts)
Users can register a custom rocksdb ColumnFamilyOptions, then the
related classes will get their options by the key of their own class
name.
|
static void |
registerRocksDBOptions(Class<?> cls,
org.rocksdb.DBOptions opts)
Users can register a custom rocksdb dboptions, then the related
classes will get their options by the key of their own class
name.
|
static void |
registerRocksDBOptions(String groupId,
Class<?> cls,
org.rocksdb.DBOptions opts)
Users can register a custom rocksdb dboptions, then the related
classes will get their options by the key of their own class
name.
|
static void |
registerRocksDBTableFormatConfig(Class<?> cls,
org.rocksdb.BlockBasedTableConfig cfg)
Users can register a custom rocksdb BlockBasedTableConfig, then the related
classes will get their options by the key of their own class name.
|
static void |
registerRocksDBTableFormatConfig(String groupId,
Class<?> cls,
org.rocksdb.BlockBasedTableConfig cfg)
Users can register a custom rocksdb BlockBasedTableConfig, then the related
classes will get their options by the key of their own class name.
|
static void |
releaseAllOptions()
Releases all storage options from the responsibility of freeing the
underlying native C++ object.
|
public static void releaseAllOptions()
public static void registerRocksDBOptions(String groupId, Class<?> cls, org.rocksdb.DBOptions opts)
groupId - raft group idcls - the key of DBOptionsopts - the DBOptionspublic static void registerRocksDBOptions(Class<?> cls, org.rocksdb.DBOptions opts)
cls - the key of DBOptionsopts - the DBOptionspublic static org.rocksdb.DBOptions getRocksDBOptions(String groupId, Class<?> cls)
groupId - raft group idcls - the key of DBOptionspublic static org.rocksdb.DBOptions getDefaultRocksDBOptions()
public static void registerRocksDBColumnFamilyOptions(String groupId, Class<?> cls, org.rocksdb.ColumnFamilyOptions opts)
groupId - raft group idcls - the key of ColumnFamilyOptionsopts - the ColumnFamilyOptionspublic static void registerRocksDBColumnFamilyOptions(Class<?> cls, org.rocksdb.ColumnFamilyOptions opts)
cls - the key of ColumnFamilyOptionsopts - the ColumnFamilyOptionspublic static org.rocksdb.ColumnFamilyOptions getRocksDBColumnFamilyOptions(String groupId, Class<?> cls)
groupId - raft group idcls - the key of ColumnFamilyOptionspublic static org.rocksdb.ColumnFamilyOptions getDefaultRocksDBColumnFamilyOptions()
public static void registerRocksDBTableFormatConfig(String groupId, Class<?> cls, org.rocksdb.BlockBasedTableConfig cfg)
groupId - raft group idcls - the key of BlockBasedTableConfigcfg - the BlockBasedTableConfigpublic static void registerRocksDBTableFormatConfig(Class<?> cls, org.rocksdb.BlockBasedTableConfig cfg)
cls - the key of BlockBasedTableConfigcfg - the BlockBasedTableConfigpublic static org.rocksdb.BlockBasedTableConfig getRocksDBTableFormatConfig(String groupId, Class<?> cls)
groupId - raft group idcls - the key of TableFormatConfigpublic static org.rocksdb.BlockBasedTableConfig getDefaultRocksDBTableConfig()
Copyright © 2024. All rights reserved.